Virtual Hosts

Derek Broughton news at pointerstop.ca
Fri Jun 9 13:06:20 UTC 2006


OOzy Pal wrote:

> What is wrong with my Virtual Host config? When I do
> 
> $sudo apachectl configtest
> 
> I get the following warnings
> 
> [Fri Jun  9 14:24:25 2006] [warn] _default_ VirtualHost overlap on
> port 80, the first has precedence

Clearly, you have an overlap :-)

> [Fri Jun  9 14:24:25 2006] [warn] NameVirtualHost 192.168.10.1:80 has
> no VirtualHosts

This one is really, really, really, annoying, but afaict it's perfectly
normal and nothing you can do is going to get rid of it (it doesn't have to
be port 80 - mine says port 0 - but there's always going to be a message
like this.

> My VH part of httpd.conf looks like:
> 
> Listen 80
> 
> NameVirtualHost 192.168.10.1:80
> NameVirtualHost 192.168.10.1

Well, there's your overlap.  

        NameVirtualHost *

will do the job.

> 
> <VirtualHost *:80>
... 
> <VirtualHost *:80>

What are you trying to do?  They can't BOTH be on port 80.

-- 
derek





More information about the ubuntu-users mailing list