Hello,

I have tested that some types of acls can't be combined, as example:

Server 192.138.1.1, acl with combined rules:

        acl rule1 hdr_dom(host) -i test.com
        acl rule1 src 192.168.1.2/24
        redirect prefix https://yes.com code 301 if rule1 
        redirect prefix https://no.com

Request from 192.168.1.2:

        $ curl -I -H "host: test.com" 192.138.1.1
        HTTP/1.1 301 Moved Permanently
        Content-length: 0
        Location: https://yes.com/

Request from 192.168.1.3:

        $ curl -I -H "host: test.com" 192.138.1.1
        HTTP/1.1 301 Moved Permanently
        Content-length: 0
        Location: https://yes.com/



Server 192.138.1.1, acl with two rules:

        acl rule1 hdr_dom(host) -i test.com
        acl rule2 src 192.168.1.2/24
        redirect prefix https://yes.com code 301 if rule1 rule2
        redirect prefix https://no.com

Request from 192.168.1.2:

        $ curl -I -H "host: test.com" 192.138.1.1
        HTTP/1.1 301 Moved Permanently
        Content-length: 0
        Location: https://yes.com/

Request from 192.168.1.3:

        $ curl -I -H "host: test.com" 192.138.1.1
        HTTP/1.1 301 Moved Permanently
        Content-length: 0
        Location: https://no.com/

I look for this behaviour on the documentation but I don't find any
reference to it. Please, can someone know where it is documented?


Thanks,


Reply via email to