httpd-users mailing list archives

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

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 znalo.homelinux.net (/etc/apache/httpd.conf:263)
port 80 server zed.shacknet.nu (/etc/apache/httpd.conf:267)
port 80 server zeta.ath.cx (/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
ServerAdmin olanz@digitalsquid.com
ServerRoot /etc/apache

BindAddress *

# LoadModule vhost_alias_module /usr/lib/apache/1.3/mod_vhost_alias.so
# LoadModule env_module /usr/lib/apache/1.3/mod_env.so
LoadModule config_log_module /usr/lib/apache/1.3/mod_log_config.so
# LoadModule mime_magic_module /usr/lib/apache/1.3/mod_mime_magic.so
LoadModule mime_module /usr/lib/apache/1.3/mod_mime.so
LoadModule negotiation_module /usr/lib/apache/1.3/mod_negotiation.so
LoadModule status_module /usr/lib/apache/1.3/mod_status.so
# LoadModule info_module /usr/lib/apache/1.3/mod_info.so
LoadModule includes_module /usr/lib/apache/1.3/mod_include.so
LoadModule autoindex_module /usr/lib/apache/1.3/mod_autoindex.so
LoadModule dir_module /usr/lib/apache/1.3/mod_dir.so
LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so
# LoadModule asis_module /usr/lib/apache/1.3/mod_asis.so
# LoadModule imap_module /usr/lib/apache/1.3/mod_imap.so
# LoadModule action_module /usr/lib/apache/1.3/mod_actions.so
# LoadModule speling_module /usr/lib/apache/1.3/mod_speling.so
LoadModule userdir_module /usr/lib/apache/1.3/mod_userdir.so
LoadModule alias_module /usr/lib/apache/1.3/mod_alias.so
LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so
LoadModule access_module /usr/lib/apache/1.3/mod_access.so
LoadModule auth_module /usr/lib/apache/1.3/mod_auth.so
# LoadModule anon_auth_module /usr/lib/apache/1.3/mod_auth_anon.so
# LoadModule dbm_auth_module /usr/lib/apache/1.3/mod_auth_dbm.so
# LoadModule db_auth_module /usr/lib/apache/1.3/mod_auth_db.so
# LoadModule proxy_module /usr/lib/apache/1.3/libproxy.so
# LoadModule digest_module /usr/lib/apache/1.3/mod_digest.so
# LoadModule cern_meta_module /usr/lib/apache/1.3/mod_cern_meta.so
LoadModule expires_module /usr/lib/apache/1.3/mod_expires.so
# LoadModule headers_module /usr/lib/apache/1.3/mod_headers.so
# LoadModule usertrack_module /usr/lib/apache/1.3/mod_usertrack.so
LoadModule unique_id_module /usr/lib/apache/1.3/mod_unique_id.so
LoadModule setenvif_module /usr/lib/apache/1.3/mod_setenvif.so
# LoadModule sys_auth_module /usr/lib/apache/1.3/mod_auth_sys.so
# LoadModule put_module /usr/lib/apache/1.3/mod_put.so
# LoadModule throttle_module /usr/lib/apache/1.3/mod_throttle.so
# LoadModule allowdev_module /usr/lib/apache/1.3/mod_allowdev.so
# LoadModule auth_mysql_module /usr/lib/apache/1.3/mod_auth_mysql.so
# LoadModule pgsql_auth_module /usr/lib/apache/1.3/mod_auth_pgsql.so
# LoadModule eaccess_module /usr/lib/apache/1.3/mod_eaccess.so
# LoadModule roaming_module /usr/lib/apache/1.3/mod_roaming.so

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/apache.pid
LockFile /var/run/apache.lock

ServerName znalo.homelinux.net

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>

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

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

-- 

-AA.

http://www.digitalsquid.com/ambrosea
(07) 3391 5469  +6145544621
PO Box 936, Fortitude Valley QLD 4006 AU

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message