HAProxy - AND condition ACL
Trying to migrate to HAProxy from Apache.
Two websites A.website.com and B.website.com. I have both on SSL and working via HAProxy. Under B.website.com I have more URL's I want to proxy to such as B.website.com/webserver1 and B.website.com/webserver2 etc.
I cannot see how I can get a AND condition on an ACL to have
- If host ends in 'A.website.com'
- AND path starts with 'webserver1'
The GUI says the conditions are OR conditions by default now. Is it possible to write AND conditions on the Admin GUI to proxy to different backends?
You can write multiple acl names in the 'condition' field of the action.
pmisch last edited by
I'm sorry but the answer given does not suffice for me. What is the correct way to use logical operators in pfsense haproxy? If I just give multiple is OR or AND used? What if I want to write a condition that has OR and AND?