Afficher un message
Vieux 16/02/2007, 21h34   #7
HansH
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: VirtualHost odd behavior (inconsistent?) Apache-2.2

<forrie@gmail.com> schreef in bericht
news:1171649269.468792.10430@p10g2000cwp.googlegro ups.com...
> On Feb 16, 12:43 pm, "HansH" <h...@invalid.invalid> wrote:
>> <for...@gmail.com> schreef in
>> berichtnews:1171645336.849562.167470@s48g2000cws.g ooglegroups.com...>
>> > _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
>>

> The IP is the same, yes. I forgot to mention that I tried both
>
> <VirtualHost *:80>

With or without a ServerName ?
.... WITHOUT it'll take preferance over _default_

>
> and
>
> <VirtualHost host-name1.domain.com>
>
> combinations and, with <_default_:80> got mixed results ...

Mixed settings may indeed give mixed results :-(


HansH


  Réponse avec citation
 
Page generated in 0,05356 seconds with 9 queries