Virtual Host error Drapper (partially fixed)

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


I forgot the ServerName *:80

But how can I point to a different IP?

-----Original Message-----
From: Karl-Heinz Schulz [mailto:karlheinz at khschulz.com] 
Sent: Saturday, September 02, 2006 4:23 PM
To: 'Ubuntu user technical support, not for general discussions'
Subject: RE: Virtual Host error Drapper

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/5865a5ef/attachment.bin>


More information about the ubuntu-users mailing list