Hi -

Gerardo Corro wrote:
However I need to make it more complex, it has to filter two possible domains, so I defined these conditions:

acl mydom1 hdr_dom(host) -i www.mydom1.com
acl mydom2 hdr_dom(host) -i www.mydom2.com
acl req_xxx_path path_beg /xxx
acl req_yyy_path path_beg /yyy
use_backend rule-csp if (mydom1 or mydom2) and (req_xxx_path or req_yyy_path)

You might try:

acl mydom hdr_dom(host) -i www.mydom1.com
acl mydom hdr_dom(host) -i www.mydom2.com
acl req_path path_beg /xxx
acl req_path path_beg /yyy
use_backend rule-csp if mydom and req_path

Not tested here with a 'and' condition in the use_backend directory but having multiple acls with the same name just works for me (rules are managed as an 'or' condition between all of them) with v1.3.15.2-2+lenny2.

HTH
--
Olivier

Reply via email to