Apache: NameVirtualHost *:80 has no VirtualHosts error message
by Ali on Jan.14, 2011, under Linux, Misc
If you’re getting the following error when trying to restart Apache server:
NameVirtualHost *:80 has no VirtualHosts
Edit your ports.conf:
nano /etc/apache2/ports.conf
and comment out NameVirtualHost towards the top of your config file.
This should work considering all other settings are correct.
To the extent possible under law, the creator has waived all copyright and related or neighboring rights to this work.