blob: 818167f0bfc8023f83fa423550b06102fba279b6 [file] [log] [blame]
Willy Tarreau1da7a772006-07-29 16:47:12 +02001# This is a test configuration.
2# It requires another server running on local port 9000, preferably httpterm
3# with the file 'httpterm-basic.cfg' from the same directory.
4#
5# It will wait for HTTP connections on port 8000 and TCP connections on port
6# 8001. It will load-balance them across active servers, and will be able to
7# validate queuing. Stats are available at URI /?stats.
8
9global
10 maxconn 500
11
12defaults
13 contimeout 1000
14 clitimeout 5000
15 srvtimeout 5000
16 retries 1
17 redispatch
18
19listen http_1
20 mode http
21 bind :8000
22 option httplog
23 option dontlognull
24 maxconn 400
25 balance roundrobin
26 server srv1 127.0.0.1:9000 cookie s1 check port 9000 inter 1000 fall 1
27 server srv2 127.0.0.2:9000 cookie s2 check port 9000 inter 1000 fall 1
28 server srv3 127.0.0.3:9000 cookie s3 check port 9000 inter 1000 fall 1
29 server srv4 127.0.0.4:9000 cookie s4 check port 9000 inter 1000 fall 1
30 option httpclose
31 errorloc 503 /503
32 stats uri /?stats
33
34listen tcp_1
35 bind :8001
36 mode tcp
37 maxconn 400
38 balance roundrobin
39 server srv1 127.0.0.1:9000 cookie s1 check port 9000 inter 1000 fall 1
40 server srv2 127.0.0.2:9000 cookie s2 check port 9000 inter 1000 fall 1
41 server srv3 127.0.0.3:9000 cookie s3 check port 9000 inter 1000 fall 1
42 server srv4 127.0.0.4:9000 cookie s4 check port 9000 inter 1000 fall 1
43