httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <>
Subject Re: [users@httpd] default site
Date Tue, 09 Jun 2009 11:53:19 GMT
On Tue, Jun 9, 2009 at 4:11 AM, Matus UHLAR - fantomas
<> wrote:
>> Boyle Owen wrote:
>> > However, a request with a domain-name that *doesn't* match a VH will be
>> > served outside the VHs by whatever default rules you have (look for
>> > "ServerName" and "DocumentRoot" outside any VH).
> On 09.06.09 09:14, Davide Bianchi wrote:
>> Actually no. If the request doesn't match any Virtual Hosts, it will be
>> served by the first vhost defined or by the one defined with the
>> _default_ keyword.
> No. The "first vhost defined" matches name virtual host on the same IPs.
> the _default_ host matches all IP's that have no vhost configured and are
> not configured to have name-based viurtual hosts (read: no <VirtualHost> nor
> NameVirtualHost use them).

NameVirtualHost doesn't affect this selection, so the logic degrades
to simpler  _default_ and * are used when there isn't an exact match
on the IP.

Any name-based vhost selection will happen after this is already
sorted out, if the VirtualHost selected (in the ip-based phase where
_default_ and * will be compared to anything) matches exactly an NVH.

Eric Covener

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message