Skip to main content

Apache2 VirtualHost configurations

I'm unable to get rid of these warning messages on one of my webservers:
ashant@washington:~$ sudo apache2ctl configtest
[Sun Apr 26 00:16:19 2009] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Sun Apr 26 00:16:19 2009] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Sun Apr 26 00:16:19 2009] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Sun Apr 26 00:16:19 2009] [warn] VirtualHost eby.xxx.com:80 overlaps with VirtualHost admin.xxx.com:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sun Apr 26 00:16:19 2009] [warn] VirtualHost www.xxx.com:80 overlaps with VirtualHost eby.xxx.com:80, the first has precedence, perhaps you need a NameVirtualHost directive
Syntax OK
These are the VirtualHost tags for each of the subdomains noted above.
ServerName admin.xxx.com
ServerAdmin it@xxx.com

DocumentRoot "/home/xxx/www/admin/"

CustomLog /var/log/apache2/xxx.com/access.log combined
ErrorLog /var/log/apache2/xxx.com/error.log
LogLevel warn
The eby subdomain.
ServerName eby.xxx.com
ServerAdmin it@ xxx.com

DocumentRoot "/home/eby/www"

CustomLog /var/log/apache2/xxx.com/access.log combined
ErrorLog /var/log/apache2/xxx.com/error.log

LogLevel warn
Each of the sites configured in the VirtualHosts are all working just fine though.

Comments

Ashant said…
ashant@washington:/etc/apache2/sites-enabled$ ls -l
total 0
lrwxrwxrwx 1 root root 36 2007-07-06 15:32 000-default -> /etc/apache2/sites-available/default
lrwxrwxrwx 1 root root 32 2007-07-07 13:43 001-c24.com -> ../sites-available/confero24.com
lrwxrwxrwx 1 root root 32 2007-07-09 01:12 002-sb.org -> ../sites-available/sellerbay.org
lrwxrwxrwx 1 root root 31 2007-07-17 10:09 003-indescon.org -> ../sites-available/indescon.org
lrwxrwxrwx 1 root root 32 2007-07-29 03:53 004-shinnin.co.uk -> ../sites-available/shinnin.co.uk
lrwxrwxrwx 1 root root 28 2007-07-29 10:13 005-wapsol.de -> ../sites-available/wapsol.de
lrwxrwxrwx 1 root root 31 2007-08-16 04:38 006-euroblaze.de -> ../sites-available/euroblaze.de
lrwxrwxrwx 1 root root 32 2007-08-16 04:38 007-euroblaze.net -> ../sites-available/euroblaze.net
lrwxrwxrwx 1 root root 40 2007-08-26 12:54 008-pavone-mechanical.com -> ../sites-available/pavone-mechanical.com
lrwxrwxrwx 1 root root 36 2007-11-04 02:06 009-euroblaze.net.ssl -> ../sites-available/euroblaze.net.ssl
lrwxrwxrwx 1 root root 31 2007-12-15 09:10 010-chalasani.de -> ../sites-available/chalasani.de
lrwxrwxrwx 1 root root 42 2008-02-07 17:48 011-orpheus-musiktheater.de -> ../sites-available/orpheus-musiktheater.de
lrwxrwxrwx 1 root root 29 2008-03-22 02:41 012-10wifi.com -> ../sites-available/10wifi.com
lrwxrwxrwx 1 root root 29 2008-12-28 16:43 013-toymann.de -> ../sites-available/toymann.de
lrwxrwxrwx 1 root root 35 2009-01-11 05:24 014-indescon.org.ssl -> ../sites-available/indescon.org.ssl

'grep general *' returns no output.