blob: 53cbf4b800421730ba1137e83679570baf92c55a [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
Willy Tarreaud4359fd2021-04-02 10:49:34 +020015 timeout client 5000
16 timeout connect 5000
17 timeout server 5000
Willy Tarreau01732802007-11-01 22:48:15 +010018 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
Willy Tarreaud4359fd2021-04-02 10:49:34 +020031 timeout client 5000
32 timeout connect 5000
33 timeout server 5000
Willy Tarreaua75efe12011-03-01 20:43:27 +010034 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