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!

link|improve this question
feedback

2 Answers

up vote 1 down vote accepted

Did you reload or restart apache after making the changes?

link|improve this answer
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
1  
Check to see if the NameVirtualHost line already exists elsewhere in the configuration. – lladnar Jun 27 '10 at 21:43
This worked, thanks. – ash Jun 27 '10 at 23:10
feedback

Your Answer

 
or
required, but never shown

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