would it be a terrible pain to modify the config parser to allow
explicit 'and' or '&&'?

On Tue, Nov 13, 2012 at 12:39 AM, Kron <[email protected]> wrote:
> Thank`s a lot! It really works.
> Shame on me))
>
> Thank you once again and have a nice day!
>
> 13.11.2012, 12:23, "Cyril Bonté" <[email protected]>:
>
> 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é

Reply via email to