Willy Tarreau | d4359fd | 2021-04-02 10:49:34 +0200 | [diff] [blame] | 1 | # This is a test configuration. |
2 | # It exercises the "url_param" balance algorithm. It looks for | ||||
3 | # an URL parameter named "foo". | ||||
4 | |||||
5 | global | ||||
6 | maxconn 100 | ||||
7 | log 127.0.0.1 local0 | ||||
8 | |||||
9 | listen vip1 | ||||
10 | log global | ||||
11 | bind :8000 | ||||
12 | mode http | ||||
13 | maxconn 100 | ||||
14 | timeout client 5000 | ||||
15 | timeout connect 5000 | ||||
16 | timeout server 5000 | ||||
17 | balance url_param foo | ||||
18 | server srv1 127.0.0.1:80 | ||||
19 | server srv2 127.0.0.1:80 | ||||
20 | |||||
21 | # control activity this way | ||||
22 | stats uri /stat | ||||
23 |