Willy Tarreau | 21d2af3 | 2008-02-14 20:25:24 +0100 | [diff] [blame] | 1 | # This is a test configuration. |
| 2 | # It makes use of a farm built from 4 servers, 3 of which are remote and |
| 3 | # referenced only via an HTTP redirect (302), and the 4th one is normal. |
| 4 | # HTTP requests different from GET/HEAD should reach the servers directly |
| 5 | # while GET/HEAD should get redirected for the 3 first ones. |
| 6 | |
| 7 | global |
| 8 | #log /dev/log local0 |
| 9 | maxconn 1000 |
| 10 | stats socket /tmp/sock1 mode 600 |
| 11 | stats timeout 3000 |
| 12 | stats maxconn 2000 |
| 13 | |
| 14 | listen sample1 |
| 15 | #log global |
| 16 | #option httplog |
| 17 | mode http |
| 18 | retries 1 |
| 19 | option redispatch |
| 20 | contimeout 1000 |
| 21 | clitimeout 5000 |
| 22 | srvtimeout 5000 |
| 23 | maxconn 40000 |
| 24 | bind :8080 |
| 25 | #balance source |
| 26 | balance roundrobin |
| 27 | option allbackups |
| 28 | server rdr1 127.0.0.1:80 redir http://static1:80 weight 10 check inter 1000 fall 4 |
| 29 | server rdr2 127.0.0.2:80 redir http://static2:80 weight 20 check inter 1000 fall 4 |
| 30 | server rdr3 127.0.0.3:80 redir http://static3:80 weight 30 check inter 1000 fall 4 |
| 31 | server dir4 127.0.0.4:80 redir weight 30 check inter 1000 fall 4 |
| 32 | option httpclose |
| 33 | stats uri /stats |
| 34 | stats refresh 5 |
| 35 | |