View Single Post

  #3 (permalink)  
Old 02-16-2007
forrie@gmail.com
 
Posts: n/a
Default Re: VirtualHost odd behavior (inconsistent?) Apache-2.2

On Feb 16, 12:43 pm, "HansH" <h...@invalid.invalid> wrote:
> <for...@gmail.com> schreef in berichtnews:1171645336.849562.167470@s48g2000cws.g ooglegroups.com...> What I'm seeing is odd, as it doesn't seem to coincide with the
> > documentation - therefore, I can only assume this is "user
> > error" (grin).

>
> > _default_:80

>
> > Should catch anything coming to the machine that is NOT DEFINED, such
> > as just coming to port 80 via IP address.

>
> If used like <_default_:80>
> and untill you mix name-based and IP-based ...
> ... where name-based means using ServerName directive
> ... not the name in DNS
>
> > <VirtualHost host-name1.domain.com>
> > <VirtualHost host-name2.domain.com>

> :
> > I end up at host-name2.

>
> I assume the IP of host-name2.domain.com matches your machine's IP.
>
> Anyway, try what happens when you change both your
> <VirtualHost ...domain.com>
> into
> <VirtualHost *:80>
> Servername ...domain.com
>
> HansH


The IP is the same, yes. I forgot to mention that I tried both

<VirtualHost *:80>

and

<VirtualHost host-name1.domain.com>

combinations and, with <_default_:80> got mixed results that seemed
inconsistent with what should happen.


Thanks!