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

