willy tarreau | 1a3442d | 2006-03-24 21:03:20 +0100 | [diff] [blame] | 1 | # This is a test configuration. |
| 2 | # It must use only the first backup server. Check local apache logs to |
| 3 | # verify : |
| 4 | # |
| 5 | # tail /var/log/apache/access_log |
| 6 | |
| 7 | |
| 8 | global |
| 9 | maxconn 100 |
| 10 | |
| 11 | listen sample1 |
| 12 | mode http |
| 13 | option httplog |
| 14 | option dontlognull |
| 15 | retries 1 |
| 16 | redispatch |
| 17 | contimeout 1000 |
| 18 | clitimeout 5000 |
| 19 | srvtimeout 5000 |
| 20 | maxconn 40000 |
| 21 | bind :8081 |
| 22 | balance source |
| 23 | server srv1 127.0.0.1:80 cookie s1 check port 81 inter 1000 fall 1 |
| 24 | server srv2 127.0.0.2:80 cookie s2 check port 81 inter 1000 fall 1 |
| 25 | server srv3 127.0.0.3:80 cookie s3 check port 81 inter 1000 fall 1 |
| 26 | server srv4 127.0.0.4:80 cookie s4 check port 81 inter 1000 fall 1 |
| 27 | server bck1 127.0.1.1:80 cookie b1 check port 81 inter 1000 fall 1 backup |
| 28 | server bck2 127.0.1.2:80 cookie b2 check port 80 inter 1000 fall 1 backup |
| 29 | server bck3 127.0.1.3:80 cookie b3 check port 80 inter 1000 fall 1 backup |
| 30 | server bck4 127.0.1.4:80 cookie b4 check port 80 inter 1000 fall 1 backup |
| 31 | server bck5 127.0.1.5:80 cookie b5 check port 80 inter 1000 fall 1 backup |
| 32 | option httpclose |
| 33 | errorloc 503 /503 |
| 34 | |