blob: 6de842af067d80e8ef5fb2841bc6d1fda679fe32 [file] [log] [blame]
Willy Tarreau11382812008-07-09 16:18:21 +02001# This sample configuration tests multiple ACL combinations. It requires
2# HAProxy version 1.3.15 minimum.
3
4global
5 maxconn 100
6
7frontend http-in
8 bind :8000-8003
9 mode http
10 clitimeout 30000
11
12 acl p1 dst_port 8001
13 acl p2 dst_port 8002
14 acl p3 dst_port 8003
15 acl d1 dst 127.0.0.1
16 acl d2 dst 127.0.0.2
17 acl d3 dst 127.0.0.3
18
19 redirect location d1&p2|d2&p1 if d1 p2 or d2 p1
20 redirect location d1&p1 if d1 p1
21 redirect location !(d2|d3) unless d2 or d3
22 redirect location d2&!p1 if d2 !p1
23 redirect location !d2&p1 if !d2 p1
24 redirect location !!d2 unless !d2
25
26 block if d3