blob: 2f384cb9e3ef62eda39d29a29e4ab66aa4e682b5 [file] [log] [blame]
Willy Tarreau01732802007-11-01 22:48:15 +01001# This is a test configuration.
2# It exercises the "url_param" balance algorithm. It looks for
3# an URL parameter named "foo".
4
5global
6 maxconn 100
7 log 127.0.0.1 local0
8
9listen vip1
10 log global
Willy Tarreaua75efe12011-03-01 20:43:27 +010011 option httplog
Willy Tarreau01732802007-11-01 22:48:15 +010012 bind :8000
13 mode http
14 maxconn 100
15 clitimeout 5000
16 contimeout 5000
17 srvtimeout 5000
18 balance url_param foo
19 server srv1 127.0.0.1:80
20 server srv2 127.0.0.1:80
21
22 # control activity this way
23 stats uri /stat
24
Willy Tarreaua75efe12011-03-01 20:43:27 +010025listen vip2
26 log global
27 option httplog
28 bind :8001
29 mode http
30 maxconn 100
31 clitimeout 5000
32 contimeout 5000
33 srvtimeout 5000
34 balance url_param foo check_post
35 server srv1 127.0.0.1:80
36 server srv2 127.0.0.1:80
37
38 # control activity this way
39 stats uri /stat
40