1# 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 11 option httplog 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 25listen 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 41