Virutal Host error Drapper

D smartssa at gmail.com
Sat Sep 2 20:11:51 UTC 2006


On 9/2/06, Karl-Heinz Schulz <karlheinz at khschulz.com> wrote:
> Ciao Carlos,
>
> I still get the same error after adding the port
>
> [Sat Sep 02 16:01:58 2006] [warn] VirtualHost www.domain1.com:80 overlaps
> with VirtualHost www.domain2.com:80, the first has precedence, perhaps you
> need a NameVirtualHost directive
> [Sat Sep 02 16:01:59 2006] [warn] VirtualHost www.domain1.com:80 overlaps
> with VirtualHost www.domain2.com:80, the first has precedence, perhaps you
> need a NameVirtualHost directive

[snip]

> <VirtualHost *:80>
...
> </VirtualHost>
>
> <VirtualHost www.domain1:80>
...
> </VirtualHost>
>
> <VirtualHost www.domain2.com:80>
...
> </VirtualHost>


Change ALL VirtualHost tags to
<VirtualHost *:80>

by placing a domain name in that tag Apache assumes IP based virtual
hosts, and if domain2.com and domain1.com are the same they will
overlap, and apache will only serve the first.


-- 
~ Darryl  ~ smartssa at gmail.com
~ http://darrylclarke.com




More information about the ubuntu-users mailing list