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!

ash
  • 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

Henk Langeveld
  • 1,314
  • 10
  • 25
lladnar
  • 292
  • 1
  • 3
  • Yes, that's why I got the warning message "on reboot." The config worked (not sure what the issue was), but I still get the warning... – ash Jun 27 '10 at 21:23
  • 2
    Check to see if the NameVirtualHost line already exists elsewhere in the configuration. – lladnar Jun 27 '10 at 21:43