Re: Different URL on backend

2011-01-24 Thread haproxy
Hi Christian,

On 23.01.2011 23:00, Christian Jensen wrote:
 I need http://www.x.com/hudson/ to point to my internal server
 http://192.168.1.30:8080/
 
 I have other urls too, such as http://www.x.com/svn/
 and http://www.x.com/trac/ that I would like to point to different
 servers and different ports with different URLs.

It is possible using regrep and friends. See the documentation [1] for
more info. Notice though, that you need to handle the different parts of
the URL individually, as the hostname is stored in the Host-Header, the
path and get parameters in the request string, and the port in the
actual TCP connection.

Also, Haproxy is not able to change content delivered by your
application servers (which only works sometimes on all those other
proxies who try to do this, btw.). Thus you need to configure your
backend servers to generate URLs exactly as the users are going to see them.

--Holger

[1] http://haproxy.1wt.eu/download/1.4/doc/configuration.txt




Re: Different URL on backend

2011-01-24 Thread Holger Just
Sorry for the impersonation. My virtual identity setup got a bit overly
excited and made an aweful mess in the whole room. Guess I need some
napkins now...

--Holger



Load balancing multiple sites in same server

2011-01-24 Thread SanthoshEsys


Hello,
  Is it possible to load balance multiple sites which are 
in the same server using HAproxy ?. We have
configured load balancing for one site and now we want to add another 
website on the same server.  Please help

me with some examples if its possible.


Thanks,

Santhosh