blob: 48e8ba15dbc720bdac1ede459c160212c48bec7a [file] [log] [blame]
Willy Tarreau2ea3abb2007-03-25 16:45:16 +02001
2# listening port ( default 9898 )
3port 9899
4
5# on which IP to bind (default 127.0.0.1 ) * = all IP
6#host 10.2.1.1
7
8# which client addr is allow ( default 127.0.0.0/8 )
9#cidr_allow = 0.0.0.0/0
10
11# verbosity from 0 to 4 (default 0 = no log )
12log_level = 1
13
14# daemonize (default 0 = no )
15daemon = 1
16
17# content put a HTML content after header
18# (default 0 = no content 1 = html 2 = table )
19content = 2
20
21# reparse the config file at each request ( default 0 = no )
22# only SIGHUP reread the config file)
23reparse = 1
24
25# pid_file (default /var/run/check.pid )
26# $$$ = basename of config file
27# $$ = PID
28pid_file=/var/run/CHECK_$$$.pid
29
30# log_file (default /var/log/check.log )
31# $$$ = basename of config file
32# $$ = PID
33log_file=/var/log/CHECK_$$$.log
34
35# number of servers to keep running (default = 5)
36min_servers = 2
37
38# number of servers to have waiting for requests (default = 2)
39min_spare_servers = 1
40
41# maximum number of servers to have waiting for requests (default = 10)
42max_spare_servers =1
43
44# number of servers (default = 50)
45max_servers = 2
46
47
48###########################################################
49# a server to check
50# type could be get , regex or tcp
51
52# get = do a http or ftp get and check the result code with
53# the list, coma separated, provided ( default = 200,201 )
54# hostheader is optional and send to the server if provided
55
56# regex = do a http or ftp get and check the content result
57# with regex provided
58# hostheader is optional and send to the server if provided
59
60# tcp = test if the tcp port provided is open
61
62#<realserver>
63# url=http://127.0.0.1:80/apache2-default/index.html
64# type = get
65# code=200,201
66# hostheader = www.test.com
67#</realserver>
68
69
70#<realserver>
71# url=http://127.0.0.1:82/apache2-default/index.html
72# type = get
73# code=200,201
74# hostheader = www.myhost.com
75#</realserver>
76
77<realserver>
78 url= http://10.2.2.1
79 type = regex
80 regex= /qdAbm/
81</realserver>
82
83<realserver>
84 type = tcp
85 url = 10.2.2.1
86 port =80
87</realserver>
88
89#<realserver>
90# type = get
91# url = ftp://FTPuser:FTPpassword@10.2.3.1
92# code=200,201
93#</realserver>