On 7/2/2011 3:37 μμ, john lewis wrote:
so I edited /etc/apache2/conf.d/Virtual.conf (which I'd setup per the
debian-admin page I mentioned earlier) to read
NameVirtualHost *:80
as well but still get an error on restarting
benden:/etc/apache2# apache2ctl graceful
[Mon Feb 07 13:29:04 2011] [warn] NameVirtualHost *:80 has no
VirtualHosts
so I have removed that file, the error message goes away and I can
still load all three dummy sites. Seems to have solved it so thanks.
Great!
Your NameVirtualHost and VirtualHost directives should match.
Read up on it a bit (good IPV6 hint in there, too):
http://httpd.apache.org/docs/2.2/mod/core.html#namevirtualhost
Especially note the comment at the bottom, "argument to virtualhost
directive".
Also:
http://httpd.apache.org/docs/2.2/vhosts/
for general info.
--G