0

My conf file:

NameVirtualHost *:80

<VirtualHost *:80>
        ServerName test.example.com
        DocumentRoot /var/www/test
</VirtualHost>

<VirtualHost *:80>
        ServerName example.com
        ServerAlias www.example.com
        DocumentRoot /var/www
</VirtualHost>

It works, but I get this warning message on reboot:

[warn] NameVirtualHost *:80 has no VirtualHosts

Anyone know why? Thanks!

rxmnnxfpvg
  • 189
  • 1
  • 1
  • 8

2 Answers2

1

(Did you reload or restart apache after making the changes?)

Check to see if the NameVirtualHost line already exists elsewhere in the configuration

lladnar
  • 292