Hi,
Le 13/11/2012 09:10, Kron a écrit :
Hello to everyone!
I have a problem with configuring haproxy with multiple conditions in
"use_backend" rule.
There is a configuration example:
frontend http_in *:80
acl myip src 192.168.0.10
acl server1_head hdr_beg(Host) -i server1.
acl server2_head hdr_beg(Host) -i server2.
use_backend server1 if server1_head and myip
use_backend server2 if server2_head and myip
Please remove the "and" keyword, it should work. AND is implicit in
haproxy :
use_backend server1 if server1_head myip
use_backend server2 if server2_head myip
--
Cyril Bonté