Apache2 warns about mixing * and ports in VirtualHost config
ISPConfig 3.0.1 Final Ubuntu 8.04 LTS
Got two of this on Apache2 startup:
[Sun Mar 29 04:53:21 2009] [error] VirtualHost :80 -- mixing * ports and non- ports with a NameVirtualHost address is not supported, proceeding with undefined results
It is caused by the /etc/apache2/sites-available/default site with the following configuration:
<VirtualHost *> ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
Adding port 80 to the VirtualHost block prevents the above warning message, but results in 404 errors when accessing pages on the server and error messages in Apache2's error log. For example tried to access http://my.domain.com/index.php, then got this:
[Sun Mar 29 05:17:27 2009] [error] [client 192.168.1.10] script '/var/www/index.php' not found or unable to stat
Disabling the default site causes this error message on Apache2 restart:
[Sun Mar 29 05:20:50 2009] [warn] default VirtualHost overlap on port 80, the first has precedence
Accessing pages on my domains results in a custom red "ERROR 404 - Not Found!" error with "Powered by ISPConfig" at its bottom.
I had to turn on the default site and hope it won't hurt...