httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Re: [users@httpd] VirtualHost overlaps with VirtualHost
Date Thu, 07 May 2009 20:05:33 GMT
Eric Covener wrote:
> On Thu, May 7, 2009 at 12:29 PM, Noah <> wrote:
>> Hi there,
>> I've googled this issue and still not able to Make sense of a cure. Also the
>> error message does explain what is happening but nothing jumps out as to how
>> to fix the problem.
>> "VirtualHost overlaps with VirtualHost, the
>> first has precedence, perhaps you need a NameVirtualHost directive"

quote 1 :
Start by looking at the output from apache2ctl -S, and make sure all 
your vhosts either use *:80 or *:443.

Of course, your NameVirtualHost must match that value.

quote 2:
> They resolve to the same IP address.  Hostnames are quite confusing in
> the VH and NVH directives, generally better to just use a wildcard,
> like *:80, unless you have some other requirements.

Guys, do you realise you're probably confusing this poor soul no end ?


- you need only *one* NameVirtualHost line, in total.
- make it like so :
NameVirtualHost *:80

- then, for each of the virtual host configurations, make sure the first 
line is
<VirtualHost *:80>
(exactly the same as what comes at the end of the NameVirtualHost line, 
they *must* match).

Depending on what system this is, and depending how the Apache packagers 
for that kind of system, in their wisdom, decided to do with the Apache 
configuration files, the best place to put the single NameVirtualHost 
directive may vary somewhat.  But make sure it occurs only once, before 
the first <VirtualHost *:80> line.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message