httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: [users@httpd] mod proxy gives strange results
Date Sat, 25 Jan 2003 23:19:09 GMT

On Sat, 25 Jan 2003, Gunter Verbocht wrote:
> <VirtualHost *>
>
> <VirtualHost domain1.com>
>
> <VirtualHost domain2.com>

Do not mix "*"ed and non"*"ed VirtualHosts.  Just use "*" in ALL the
<VirtualHost> containers and add a
NameVirtualHost *
directive.

If you are interested in the details: Apache performs a reverse lookup on
domain1.com and domain2.com to figure out the IP address to map to each
<VirtualHost>.  Since you have no NameVirtualHost directive, it treats
your virtual hosts as IP-based, and when a request comes in it simply
matches the requested IP address with the first matching <VirtualHost>
(excluding the "*" ones).

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message