Without brackets, seems it is not possible to have haproxy select use_backend based on true and (a or b)
For example, I want to use_backend ClusterA if allowed_src and (method_a or path_b)
. Regardless if I invert the conditions before/after and
, I am left with a way to hit the backend with a single true value instead of requiring allowed_src
and one of either method_a
or path_b
.
*updated example such that all three ACL are distinct.