Willy Tarreau | 0173280 | 2007-11-01 22:48:15 +0100 | [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 |
Willy Tarreau | a75efe1 | 2011-03-01 20:43:27 +0100 | [diff] [blame] | 11 | option httplog |
Willy Tarreau | 0173280 | 2007-11-01 22:48:15 +0100 | [diff] [blame] | 12 | 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 Tarreau | a75efe1 | 2011-03-01 20:43:27 +0100 | [diff] [blame] | 25 | listen 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 | |