Willy Tarreau | a6bd1a1 | 2013-02-20 17:30:09 +0100 | [diff] [blame] | 1 | global |
| 2 | stats socket /tmp/sock1 mode 666 level admin |
| 3 | stats timeout 2d |
| 4 | #log 127.0.0.1:1000 local0 # good |
| 5 | #log 127.0.0.1 local0 # good |
| 6 | #log 127.0.0.1:1001-1002 local0 |
| 7 | #log 127.0.0.1:-1003 local0 |
| 8 | #log 127.0.0.1:+1004 local0 |
| 9 | |
| 10 | defaults |
| 11 | timeout client 5s |
| 12 | timeout server 5s |
| 13 | timeout connect 5s |
| 14 | #log 127.0.0.1:1000 local0 # good |
| 15 | #log 127.0.0.1 local0 # good |
| 16 | #log 127.0.0.1:1001-1002 local0 |
| 17 | #log 127.0.0.1:-1003 local0 |
| 18 | #log 127.0.0.1:+1004 local0 |
| 19 | |
| 20 | listen p |
| 21 | mode http |
| 22 | bind :8001 |
| 23 | bind *:8002 |
| 24 | bind :::8003 |
| 25 | bind 127.0.0.1:8004 |
| 26 | #bind ::127.0.0.1:8005 |
| 27 | bind :::8006 |
| 28 | bind 127.0.0.1:8007-8009 |
| 29 | #bind 127.0.0.1:8010- |
| 30 | #bind 127.0.0.1:-8011 |
| 31 | #bind 127.0.0.1:+8012 |
| 32 | |
| 33 | stats uri /stat |
| 34 | #dispatch 192.168.0.176:8005 # good |
| 35 | #dispatch 192.168.0.176 |
| 36 | #dispatch 192.168.0.176:8001-8002 |
| 37 | #dispatch 192.168.0.176:-8003 |
| 38 | #dispatch 192.168.0.176:+8004 |
| 39 | |
| 40 | server s1 192.168.0.176:80 check addr 192.168.0.176:8000 source 192.168.0.1:10000-59999 check |
| 41 | |
| 42 | #server s1 192.168.0.176:80 addr 192.168.0.176:-8000 source 192.168.0.1:10000-59999 check |
| 43 | #server s1 192.168.0.176:80 addr 192.168.0.176:+8000 source 192.168.0.1:10000-59999 check |
| 44 | #server s1 192.168.0.176:80 addr 192.168.0.176:8000-8001 source 192.168.0.1:10000-59999 check |
| 45 | |
| 46 | #source 192.168.0.1:8000 # good |
| 47 | #source 192.168.0.1:-8000 |
| 48 | #source 192.168.0.1:+8000 |
| 49 | #source 192.168.0.1:8000-8001 |
| 50 | |
| 51 | #source 192.168.0.1:8000-8001 |
| 52 | #source 192.168.0.1 usesrc 192.168.0.1:8000-8001 |
| 53 | |
| 54 | peers truc |
| 55 | #peer machin1 127.0.0.1 # good |
| 56 | #peer machin2 127.0.0.2:1000-2000 |
| 57 | #peer machin2 127.0.0.3:-2000 |
| 58 | #peer machin2 127.0.0.4:+2000 |
| 59 | #peer machin2 127.0.0.5:2000 |
| 60 | |