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.