> >> >> Listen 80 > >> >> NameVirtualHost *:80 > >> >> > >> >> <VirtualHost 192.168.0.2:80> > >> >> HostName www.myhostname.com > >> >> ... > >> >> </VirtualHost> > >> >> > >> >> > >> >> <VirtualHost 192.168.0.3:80> > >> >> HostName www.myhostname.com > >> >> ... > >> >> </VirtualHost> > >> >> > >> >> > >> >> <VirtualHost 192.168.0.2:80> > >> >> HostName www.someotherhostname.com > >> >> .... > >> >> </VirtualHost>
> >Did you actually verify that by logging it? > > > >Hosts 1 and 2 are IP-based virtual hosts, so the host header is irrelevant. On 23.02.08 19:42, Ruslan Sivak wrote: > I think therein lies the problem. If they're IP based virtualHosts then > they will match everything for that ip. As you can see Hosts 1 and 3 > share the IP. > > Here is what I want to do. I want all the hosts to be name based > virtual hosts. Hosts 1 and 2 should be on separate ips, so therefore > they will be hit properly from the LB. Host 3 will have a different > host header so it will be matched properly too. > > How do I make a name based virtual host without having it listen on all > the ips? you can listen on 0.0.0.0 but I'm afraid you have to provide each IP in NameVirtualHost if yhou want to have name-based virtual hosts on them. Seems that the wildcard in NameVirtualHost does not mean that every local IP has name-based virtual hosts... -- Matus UHLAR - fantomas, [EMAIL PROTECTED] ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. Due to unexpected conditions Windows 2000 will be released in first quarter of year 1901 --------------------------------------------------------------------- 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]