Archive for November 2009
[warn] NameVirtualHost *:80 has no VirtualHosts
Here’s some help if you are trying to run multiple sites of one ip address using Apache2 and are getting the following error;
[warn] NameVirtualHost *:80 has no VirtualHosts
I followed a tutorial on howto setup name based virtual hosts and this is where the problem started. The ‘NameVirtualHosts *:80′ directive may already be getting picked up in /etc/apache2/ports.conf so you don’t need to add it. Getting the <virtualhost *:80></virtualhost> right is enough in your sites-available, that should be all you have to do. Too many NameVirtualHosts directives is what was causing this error for me.
