httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Owen Boyle <...@bourse.ch>
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.

Rgds,

Owen Boyle.

> ServerName xantho.resellerserver.com
> DocumentRoot /usr/local/etc/httpd/htdocs
> 
> NameVirtualHost 213.198.63.79
> 
> #first VirtualHost-Entry:
> <VirtualHost 213.198.63.79>
>         ServerName www.angard.de
> </VirtualHost>
> 
> <VirtualHost 213.198.63.79>
>         ServerName www.xantho.de
> </VirtualHost>
> ---------------------------------------------------------
> There are many other DSN connected to 213.198.63.79 but they do not default to www.angard.de.
> 
> Example:
> request http://test.xantho.de
> 
> is answerd by xantho.resellerserver.com (the main server) not by www.angard.de (the first
VHOST).

---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message