[Intrepid Alpha 5 through Live release] NameVirtualHost entry in ports.conf causes "NameVirtualHost *:80 has no VirtualHosts" warning and breaks virtualhosts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apache2 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: apache2
I've setup a sandbox and configured VirtualHosts.
I noticed that NameVirtualHost has an entry in /etc/apache2/
I've configured /etc/apache2/
[Thu Sep 11 15:05:04 2008] [warn] NameVirtualHost *:80 has no VirtualHosts
Here's my /etc/apache2/
NameVirtualHost *
<VirtualHost *>
ServerName localhost
</VirtualHost>
<VirtualHost *>
ServerName oms
</VirtualHost>
<VirtualHost *>
ServerName ticketing
</VirtualHost>
Servers ticketing and oms are both pointed at 127.0.0.1 on /etc/hosts and this setup should've worked. However, no matter what server I access, I always end up at /var/www.
I soon found out that /etc/apache2/
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/
NameVirtualHost *:80
Listen 80
<IfModule mod_ssl.c>
# SSL name based virtual hosts are not yet supported, therefore no
# NameVirtualHost statement here
Listen 443
</IfModule>
I commented out NameVirtualHost and got my oms and radio servers working after reload.
This is documented in NEWS.Debian. Maybe an entry in the release notes is needed, too?