How to solve virtual host issue

Posted by Webnet on Server Fault See other posts from Server Fault or by Webnet
Published on 2011-01-17T15:35:53Z Indexed on 2011/01/17 15:54 UTC
Read the original article Hit count: 231

Filed under:
|

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

© Server Fault or respective owner

Related posts about apache2

Related posts about virtualhosts