httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ambrose Andrews <>
Subject namevirtualhost and _default_ overlap
Date Fri, 10 May 2002 02:36:12 GMT

Im an a dialup dynamic ip connection, with 3 dynamic dns entries
pointing at it.

Linux on a second-hand pentium under the desk.

Trying to get named virtual hostsgoing.

i have all 3 entries in /etc/hosts, but the hosts are in dns anyway,
and i restart the server after the dns has been updated.

what happens is any http request including for either of the two
non-default virtual hosts get server by the default.

here is the error message i get with apache -S

[Fri May 10 12:10:24 2002] [warn] _default_ VirtualHost overlap on
port 80, the first has precedence
[Fri May 10 12:10:24 2002] [warn] _default_ VirtualHost overlap on
port 80, the first has precedence
[Fri May 10 12:10:24 2002] [warn] NameVirtualHost *:80 has no VirtualHosts
VirtualHost configuration:
_default_ servers:
port 80 server (/etc/apache/httpd.conf:263)
port 80 server (/etc/apache/httpd.conf:267)
port 80 server (/etc/apache/httpd.conf:272)

its the first bit which puzzles me.
why the overlap, if the first is the default and the rest are whatever
they are?

could be explained (?) by the NameVirtualHost has no virtual hosts line.
syntax problem?  been staring at this too long...

Server version: Apache/1.3.9 (Unix) Debian/GNU

here is my decommented httpd.conf:

ServerType standalone
Port 80

HostnameLookups off

User www-data
Group www-data
ServerRoot /etc/apache

BindAddress *

# LoadModule vhost_alias_module /usr/lib/apache/1.3/
# LoadModule env_module /usr/lib/apache/1.3/
LoadModule config_log_module /usr/lib/apache/1.3/
# LoadModule mime_magic_module /usr/lib/apache/1.3/
LoadModule mime_module /usr/lib/apache/1.3/
LoadModule negotiation_module /usr/lib/apache/1.3/
LoadModule status_module /usr/lib/apache/1.3/
# LoadModule info_module /usr/lib/apache/1.3/
LoadModule includes_module /usr/lib/apache/1.3/
LoadModule autoindex_module /usr/lib/apache/1.3/
LoadModule dir_module /usr/lib/apache/1.3/
LoadModule cgi_module /usr/lib/apache/1.3/
# LoadModule asis_module /usr/lib/apache/1.3/
# LoadModule imap_module /usr/lib/apache/1.3/
# LoadModule action_module /usr/lib/apache/1.3/
# LoadModule speling_module /usr/lib/apache/1.3/
LoadModule userdir_module /usr/lib/apache/1.3/
LoadModule alias_module /usr/lib/apache/1.3/
LoadModule rewrite_module /usr/lib/apache/1.3/
LoadModule access_module /usr/lib/apache/1.3/
LoadModule auth_module /usr/lib/apache/1.3/
# LoadModule anon_auth_module /usr/lib/apache/1.3/
# LoadModule dbm_auth_module /usr/lib/apache/1.3/
# LoadModule db_auth_module /usr/lib/apache/1.3/
# LoadModule proxy_module /usr/lib/apache/1.3/
# LoadModule digest_module /usr/lib/apache/1.3/
# LoadModule cern_meta_module /usr/lib/apache/1.3/
LoadModule expires_module /usr/lib/apache/1.3/
# LoadModule headers_module /usr/lib/apache/1.3/
# LoadModule usertrack_module /usr/lib/apache/1.3/
LoadModule unique_id_module /usr/lib/apache/1.3/
LoadModule setenvif_module /usr/lib/apache/1.3/
# LoadModule sys_auth_module /usr/lib/apache/1.3/
# LoadModule put_module /usr/lib/apache/1.3/
# LoadModule throttle_module /usr/lib/apache/1.3/
# LoadModule allowdev_module /usr/lib/apache/1.3/
# LoadModule auth_mysql_module /usr/lib/apache/1.3/
# LoadModule pgsql_auth_module /usr/lib/apache/1.3/
# LoadModule eaccess_module /usr/lib/apache/1.3/
# LoadModule roaming_module /usr/lib/apache/1.3/

ExtendedStatus on
ErrorLog /var/log/apache/error.log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\" %T %v" full
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /var/log/apache/access.log common
PidFile /var/run/
LockFile /var/run/apache.lock


UseCanonicalName off 

Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 30

NameVirtualHost * 

<VirtualHost *>
DocumentRoot /var/www/znalo-homelinux-net/

<VirtualHost *>
DocumentRoot /var/www/zed-shacknet-nu/

<VirtualHost *>
DocumentRoot /var/www/zeta-ath-cx/


(07) 3391 5469  +6145544621
PO Box 936, Fortitude Valley QLD 4006 AU

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message