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!

2 Answers 2

1

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

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

2
  • 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, 2010 at 21:23
  • 2
    Check to see if the NameVirtualHost line already exists elsewhere in the configuration.
    – lladnar
    Jun 27, 2010 at 21:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.