Willy Tarreau | 668730f | 2017-10-04 16:28:34 +0200 | [diff] [blame] | 1 | global |
| 2 | maxconn 500 |
| 3 | external-check |
| 4 | stats socket /tmp/sock1 mode 666 level admin |
| 5 | |
| 6 | defaults |
| 7 | timeout client 5s |
| 8 | timeout server 5s |
| 9 | timeout connect 5s |
| 10 | mode http |
| 11 | |
| 12 | listen stats |
| 13 | bind :8888 |
| 14 | stats uri / |
| 15 | |
| 16 | backend tcp9000 |
| 17 | option tcp-check |
| 18 | server srv 127.0.0.1:9000 check inter 1s |
| 19 | |
| 20 | backend tcp9001 |
| 21 | option tcp-check |
| 22 | tcp-check comment "this is a comment" |
| 23 | server srv 127.0.0.1:9001 check inter 1s |
| 24 | |
| 25 | backend tcp9002 |
| 26 | option tcp-check |
| 27 | tcp-check connect port 9002 |
| 28 | server srv 127.0.0.1:9002 check inter 1s |
| 29 | |
| 30 | backend tcp9003 |
| 31 | option tcp-check |
| 32 | tcp-check comment "this is a comment" |
| 33 | tcp-check connect port 9003 |
| 34 | server srv 127.0.0.1:9003 check inter 1s |
| 35 | |
| 36 | backend tcp9004 |
| 37 | option tcp-check |
| 38 | tcp-check connect port 9004 |
| 39 | tcp-check send-binary 474554 # "GET" |
| 40 | tcp-check send-binary 202F20 # " / " |
| 41 | tcp-check send-binary 485454 # "HTT" |
| 42 | tcp-check send-binary 502F31 # "P/1" |
| 43 | tcp-check send-binary 2E300D # ".0\r" |
| 44 | tcp-check send-binary 0A0D0A # "\n\r\n" |
| 45 | tcp-check expect rstring HTTP |
| 46 | server srv 127.0.0.1:9004 check inter 1s |
| 47 | |
| 48 | backend tcp9005 |
| 49 | option tcp-check |
| 50 | tcp-check connect port 9005 ssl |
| 51 | server srv 127.0.0.1:9005 check inter 1s verify none |
| 52 | |
| 53 | backend ssh |
| 54 | option tcp-check |
| 55 | tcp-check connect port 22 |
| 56 | tcp-check expect rstring SSH |
| 57 | tcp-check send "oops, sorry" |
| 58 | server blah 127.0.0.1:22 check inter 1s |
| 59 | |
| 60 | frontend dummy |
| 61 | mode http |
| 62 | bind :9000-9005 |
| 63 | |