I am attempting to use a backend under the following condition:
It is the prod site being requested (i.e. there is mysite.com and beta.mysite.com)
AND
It's an api request
OR
It's an opt-in request
I have the following acls setup for each condition:
acl prod hdr_beg(host) -i mysite.com
acl url_api path_beg /api/
acl url_opt-in path_beg /opt-in/
I would now like to redirect to the prod-api-backend like so:
use_backend prod-api-backend if prod AND ( url_api OR url_opt-in )
However, I can't seem to figure out how I can write a condition like this without receiving a configuration error.