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