use_backend complex rules

From: Gerardo Corro <rob_gar_esp#hotmail.com>
Date: Tue, 3 Aug 2010 05:17:52 -0500

Hi HA people,

I had a simple use_backend rule that works:

acl req_xxx_path path_beg /xxx
acl req_yyy_path path_beg /yyy
use_backend rule-csp if req_xxx_path or req_yyy_path

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)

The previous snippet is not working, How can I make it work?

Thanks in advanced,                                                 Received on 2010/08/03 12:17

This archive was generated by hypermail 2.2.0 : 2010/08/03 12:30 CEST