blob: 86d1354597512e7abe54a7602d8e74cb170c10a8 [file] [log] [blame]
willy tarreaub8d29e42006-03-24 19:37:23 +01001# This is a test configuration.
2# It must use only the first backup server. Check local apache logs to
3# verify :
4#
5# tail /var/log/apache/access_log
6
7
8global
9 maxconn 100
10
11listen sample1
12 mode http
13 option httplog
14 option dontlognull
15 retries 1
16 redispatch
17 contimeout 1000
18 clitimeout 5000
19 srvtimeout 5000
20 maxconn 40000
21 bind :8081
22 balance roundrobin
23 server srv1 127.0.0.1:80 cookie s1 check port 81 inter 1000 fall 1
24 server srv2 127.0.0.2:80 cookie s2 check port 81 inter 1000 fall 1
25 server srv3 127.0.0.3:80 cookie s3 check port 81 inter 1000 fall 1
26 server srv4 127.0.0.4:80 cookie s4 check port 81 inter 1000 fall 1
27 server bck1 127.0.1.1:80 cookie b1 check port 81 inter 1000 fall 1 backup
28 server bck2 127.0.1.2:80 cookie b2 check port 80 inter 1000 fall 1 backup
29 server bck3 127.0.1.3:80 cookie b3 check port 80 inter 1000 fall 1 backup
30 server bck4 127.0.1.4:80 cookie b4 check port 80 inter 1000 fall 1 backup
31 option httpclose
32 errorloc 503 /503
33