Apache: NameVirtualHost *:80 has no VirtualHosts error message

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.