Virtual Host error Drapper

Karl-Heinz Schulz karlheinz at khschulz.com
Sat Sep 2 20:23:10 UTC 2006


Ok

This fixed the error with the NameVirtualHost directive but how can I
configure that a web user arrives at the correct site

www.Domain1.com  (192.168.168.1) -> /var/www/domain1
webmail.domain1.com (192.168.168.1) /usr/share/squirrelmail
www.Domain2.com  (192.168.168.1) -> /var/www/domain2
www.domain3.com  (192.168.168.2) -> /var/www/domain3


TIA

-----Original Message-----
From: ubuntu-users-bounces at lists.ubuntu.com
[mailto:ubuntu-users-bounces at lists.ubuntu.com] On Behalf Of D
Sent: Saturday, September 02, 2006 4:12 PM
To: Ubuntu user technical support, not for general discussions
Subject: Re: Virutal Host error Drapper

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

--
ubuntu-users mailing list
ubuntu-users at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3660 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060902/6435c0a8/attachment.bin>


More information about the ubuntu-users mailing list