Yes you can.
Check out http://haproxy.1wt.eu/download/1.3/doc/configuration.txt
There are more conditional options than you probably will ever need.
In your case, you probably want something like
acl toto-acl hdr_dom -i www.toto.com
acl test-acl hdr_dom -i www.test.com
acl bar-acl hdr_sub bar
(I'm not positive about the last one, but should work)
-Dan
florian iragne wrote:
> Hello everybody,
>
> I'm testing haproxy to put it in replacement for pound, and there's only
> thing i am not able to do now with haproxy : redirecting http request
> according to the content of the header (e.g., www.toto.com go to server
> 1 and 2, www.test.com go to server3 and urls containg "bar" go to server
> 4).
>
> I'm quite happy with pound, but it begins to be overloaded. Haproxy
> seems very interesting and has great features i've been able to test,
> but if it lacks the conditionnal redirections i can't use it.
>
> so is it possible to use such feature in HAproxy or do i have to look
> for another software?
>
> thanks for your answers
>
> Florian
>
Received on 2007/12/20 19:27
This archive was generated by hypermail 2.2.0 : 2007/12/20 19:30 CET