[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-admin
Subject:    apache redirectpermanent
From:       urgrue <urgrue () tumsan ! fi>
Date:       2001-05-02 11:56:56
[Download RAW message or body]

hi, what i want is that the queries to:
http://my.domain.com
http://1.2.3.4    (ip number for the same)
https://1.2.3.4 
would all be redirected to:
https://my.domain.com

so what i did was add virtual hosts for the first two, with
RedirectPermanent / https://my.domain.com

and those work. but as for the last, the SSL-connection to 1.2.3.4,
if i add a virtualhost to the SSL section, like so:
NameVirtualHost 1.2.3.4:443
<VirtualHost 1.2.3.4:443>
ServerName https://1.2.3.4
RedirectPermanent / https://my.domain.com
</VirtualHost>

what happens is that the redirections go in a loop, any connection
gets forwarded to https://my.domain.com but somehow magically also any
connection to https://my.domain.com gets looped back to itself or one
of the others. 

I _thought_ that a virtualhost directive (ssl or otherwise) will only
answer queries on the specific IP and PORT mentioned in
"NameVirtualHost" that are directed to the name, be it an IP or a
domain name, matching with ServerName. 
This doesn't seem to be so, however, because i have nothing
redirecting https://my.domain.com but queries to that do get
redirected somewhere. removing the last entry, the VirtualHost in the
SSL section for https://1.2.3.4, and everything works.
So I'm assuming that redirection somehow also will redirect
https://my.domain.com.

Is this correct? Any ideas how i can get the desired result (in
apache's configs, not in html, for reasons not important here)?

thanks,
fred

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic