Chris Matchett

A blog to remind me how to fix stuff and other tech thoughts…

Archive for November 2009

[warn] NameVirtualHost *:80 has no VirtualHosts

without comments

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.

apache_logo_medium

Written by Chris

November 5, 2009 at 12:16 am

Posted in Uncategorized