How to solve virtual host issue
- by Webnet
I have multiple sites all setup the same as below except "bk" has something else in it's place...
NameVirtualHost *:80
<VirtualHost bk:80>
ServerName bk
DocumentRoot /var/www/bk.com/
</VirtualHost>
and I get these errors when restarting apache:
[Mon Jan 17 10:28:56 2011] [error] VirtualHost bk:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Mon Jan 17 10:28:56 2011] [warn] NameVirtualHost bk:80 has no VirtualHosts
I don't get it... the other 2 sites I have virtual host configurations for this exact same way don't throw any errors
update
One error message fixed - here's where I'm at now..
<VirtualHost bk:80>
ServerName bk
DocumentRoot /var/www/bk.com/
</VirtualHost>
[Mon Jan 17 10:28:56 2011] [error] VirtualHost bk:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results