blob: 20aa29315b262ee92555080de8e130586dfa10fa [file] [log] [blame]
willy tarreau1a3442d2006-03-24 21:03:20 +01001# This is a test configuration.
2# It must load-balance across active servers. 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 source
23 server srv1 127.0.0.1:80 cookie s1 check port 80 inter 1000 fall 1
24 server srv2 127.0.0.2:80 cookie s2 check port 80 inter 1000 fall 1
25 server srv3 127.0.0.3:80 cookie s3 check port 80 inter 1000 fall 1
26 #server srv4 127.0.0.4:80 cookie s4 check port 80 inter 1000 fall 1
27 option httpclose
28 errorloc 503 /503
29