[Bug 268868] [NEW] [Intrepid Alpha 5] NameVirtualHost entry in ports.conf causes "NameVirtualHost *:80 has no VirtualHosts" warning
Dax Solomon Umaming
knightlust at gmail.com
Thu Sep 11 08:23:21 BST 2008
Public bug reported:
Binary package hint: apache2
I've setup a sandbox and configured VirtualHosts.
I noticed that NameVirtualHost has an entry in /etc/apache2/ports.conf
I've configured /etc/apache2/sites-available/default and added a few more VirtualHost entries there but reload only gave me a warning:
[Thu Sep 11 15:05:04 2008] [warn] NameVirtualHost *:80 has no VirtualHosts
Here's my /etc/apache2/sites-available/default file:
NameVirtualHost *
<VirtualHost *>
DocumentRoot "/var/www"
ServerName localhost
</VirtualHost>
<VirtualHost *>
DocumentRoot "/home/dax/Codes/OMS"
ServerName oms
</VirtualHost>
<VirtualHost *>
DocumentRoot "/home/dax/Codes/Ticketing"
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/ports.conf has NameVirtualHost entry:
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
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.
** Affects: apache2 (Ubuntu)
Importance: Undecided
Status: New
--
[Intrepid Alpha 5] NameVirtualHost entry in ports.conf causes "NameVirtualHost *:80 has no VirtualHosts" warning
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