On Tue, Jun 9, 2009 at 4:11 AM, Matus UHLAR - fantomas <uhlar@xxxxxxxxxxx> 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 covener@xxxxxxxxx --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx