Hi Lucas,
On 10/5/26 18:20, Lukas Tribus wrote:
Or if those would be 3 different ACLs then you would actually use the
or operator in the use-server directive:
use-server hrx0-chrome if requests-chrome-acl1 or requests-chrome-acl2
or requests-chrome-acl3
See section 7.2 of the docs for some examples.
thanks a lot! This explains the issue very well. 7.2 is about using
pre-defined acls and it explains the usage of AND/OR operators. The
previous section (7.1) is actually the one which explains the acl
definition.
However it's maybe a bit hidden in section 7.1 that AND/OR operators are
not allowed for acl definitions, in any case I couldn't find explicitly
in 7.1 that AND/OR/&&/|| operators are not supported, I just assumed
they would.
Maybe the documentation could be clarified here a bit so that it
explicitly mentions that logical operators are not supported for acl
definitions. I used logical operators in the past and they only kind of
worked because they fortunately were matches in the same variables
before. :-) Maybe also a warning for haproxy -c could be issued if it
looks like a logical operator is being used in an acl definition. This
would improve usability a bit for people who did the same mistake as me
here.
Thanks again ...
Björn