httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Owen Boyle <>
Subject Re: VHOSTS
Date Mon, 07 Jan 2002 08:19:53 GMT
"U.Tollas" wrote:
> Hi,
> in apache documentation I read:
> "The first vhost on this list (the first vhost in the config file with the specified
IP address) has the highest priority and catches any request to an unknown server name or
a request without a Host: header field. "

There is an assumption here that you have not defined a global
ServerName and that all servers are inside VHs. This is not the case
with your set-up. Your global server is superseding your VHs. Put *all*
Servers in to VHs, then arrange them in the order you want.


Owen Boyle.

> ServerName
> DocumentRoot /usr/local/etc/httpd/htdocs
> NameVirtualHost
> #first VirtualHost-Entry:
> <VirtualHost>
>         ServerName
> </VirtualHost>
> <VirtualHost>
>         ServerName
> </VirtualHost>
> ---------------------------------------------------------
> There are many other DSN connected to but they do not default to
> Example:
> request
> is answerd by (the main server) not by (the first

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

View raw message