Apache: [warn] NameVirtualHost *:80 has no VirtualHosts
Jun 25, 2011 - by kurinchilamp / / Post Comment
$ /etc/init.d/apache2 restart
After configuring Apache server settings on the name server, you may encounter a message "[warn] NameVirtualHost 192.168.1.3:80 has no VirtualHosts"
The issue may be due to more than one entry of NameVirtualHost lines in the configuration settings. You can find this out by
$ grep NameVirtual * -R
site1:NameVirtualHost *:80
site2:NameVirtualHost *:80
Linux Solution: Remove one of the occurance of the NameVirtualHost and the warning message that you receive will vanish.
Continue Reading