[Bug 268868] Re: [Intrepid Alpha 5] NameVirtualHost entry in ports.conf causes "NameVirtualHost *:80 has no VirtualHosts" warning

Glassbox tchalvakspam at gmail.com
Fri Nov 14 18:36:29 GMT 2008


My upgrade to Intrepid Ibex added a ports.conf to the apache files,
containing the lines
NameVirtualHost:80
Listen 80

(and some ssl stuff).

this gave the error: [warn] NameVirtualHost *:80 has no VirtualHosts
when I restarted apache, and sent all my pre-existing virtualhost entries to the default /var/www/ localhost location.

Just commenting out the NameVirtualHost line didn't solve the problem
for me, my solution ended up being making the NameVirtualHost and
default virtual host MATCH port settings by:

Stripping the :80 port reference from the NameVirtualHost *:80 line in
ports.conf and also stripping the :80 port reference from the default
virtual host <VirtualHost *:80> as well, so now both looked like:

NameVirtualHost *

... and ...

<VirtualHost *>

And now my other virtualhosts are working again.

-- 
[Intrepid Alpha 5 through Live release] NameVirtualHost entry in ports.conf causes "NameVirtualHost *:80 has no VirtualHosts" warning and breaks virtualhosts
https://bugs.launchpad.net/bugs/268868
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to apache2 in ubuntu.



More information about the Ubuntu-server-bugs mailing list