Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Jan 2009 09:23:36 -0400 (AST)
From:      "Marc G. Fournier" <scrappy@hub.org>
To:        freebsd-questions@freebsd.org
Subject:   Load balancing multiple virtual hosts on 1 IP
Message-ID:  <20090131091825.R90262@hub.org>

next in thread | raw e-mail | index | archive | help

Simple: is it possible?

I have two VMs that contain the same content, on two different IPs .. I 
want to setup a third VM with something like haproxy on it that will take 
the URL (http://domain1) and pull the content from one or the other ...

So far, all works well if I only have one virtual host, but as soon as I 
add a second one (http://domain2), when I try to go to http://domain2, it 
pulls up the content for domain1 also, as if I was going to http://IP 
instead.

Is there a way to set this up (with haproxy, or some other software), that 
it will actually pass the URL through to the backend apache server and 
load up the right content?  Or is this a limitation in the protocol 
itself?/

Thx

----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email . scrappy@hub.org                              MSN . scrappy@hub.org
Yahoo . yscrappy               Skype: hub.org        ICQ . 7615664



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090131091825.R90262>