File: examples.cfg

package info (click to toggle)
haproxy 1.3.15.2-2%2Blenny2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,780 kB
  • ctags: 2,264
  • sloc: ansic: 21,832; perl: 543; sh: 407; makefile: 339; xml: 124
file content (154 lines) | stat: -rw-r--r-- 3,725 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
global
	log	127.0.0.1 local0
#	log	127.0.0.1 local1
	maxconn	4000
	ulimit-n 8000
	uid	0
	gid	0
#	chroot	/tmp
#	nbproc	2
#	daemon
#	debug
#	quiet

listen proxy1 0.0.0.0:8000
	mode	http
#	source	127.0.0.2:0
#	log	127.0.0.1 local0
#	log	127.0.0.1 local1
	log global
	#mode	tcp
        cookie SERVERID insert indirect
	balance roundrobin
	#dispatch 127.0.0.1:3130
	#dispatch 127.0.0.1:31300
	#dispatch 127.0.0.1:80
	#dispatch 127.0.0.1:22
	option httpchk
	server test 10.1.1.2:80 cookie cookie1 check inter 300
#	server nc 127.0.0.1:8080 cookie cookie1 check inter 300
#	server tuxlocal0 10.101.23.9:80 cookie cookie1 check
#	server tuxlocal1 127.0.0.1:80 cookie cookie1 check
#	server tuxlocal2 127.0.0.1:80 cookie cookie2 check
#	server tuxlocal3 127.0.0.1:80 cookie cookie3 check
#	server tuxlocal4 127.0.0.1:80 cookie cookie4 check
#	server vax 10.101.14.1:80 cookie cookie1 check
	#server tuxceleron 10.101.0.1:80 cookie cookie2 check
	#server telnet 127.0.0.1:23
	#server ssh 127.0.0.1:22
	#server local 127.0.0.1:3130 cookie cookie3 check
	#server ko 127.0.0.1:0 cookie cookie3 check
	#server local 127.0.0.1:8001 cookie cookie3 check
	#server local 127.0.0.1:3130
	#server celeron 10.101.0.1:80 cookie srv1
	#server celeron 10.101.0.1:31300
	#server local 10.101.23.9:31300
	contimeout	3000
	clitimeout	150000
	srvtimeout	150000
	maxconn 60000
	redispatch
	retries	3
	grace 3000
	#rsprep	^Server.* Server:\ IIS
	#rspdel	^Server.*
	#rspadd Set-Cookie:\ mycookie=0;\ path=/
	#rsprep ^(Date:\ )([^,]*)(,\ )(.*) LaDate\ est:\ \4\ (\2)
	# force connection:close
	#reqidel ^Connection:
	#rspidel ^Connection:
	#reqadd	Connection:\ close
	#rspadd	Connection:\ close
	# processing options
	#option	keepalive
	option	forwardfor
	option httplog
	option dontlognull
#	reqirep ^(Test:\ ) \0_toto_\1_toto
#	reqidel ^X-Forwarded-for:
#	reqirep ^(GET|POST)\ .* \0
#	reqirep ^(Host:|Connection:|User-agent:|Cookie:)\ .* \0
#	reqideny ^
	
listen proxy1 0.0.0.0:8001
	mode	http
	#mode	tcp
	dispatch 127.0.0.1:80
	#dispatch 127.0.0.1:31300
	#dispatch 127.0.0.1:80
	#dispatch 127.0.0.1:22
	#server tuxlocal 127.0.0.1:80 cookie cookie1 check
	#server tuxceleron 10.101.0.1:80 cookie cookie2 check
	#server telnet 127.0.0.1:23
	#server ssh 127.0.0.1:22
	#server local 127.0.0.1:3130 cookie cookie3 check
	#server local 127.0.0.1:3130
	#server celeron 10.101.0.1:80 cookie srv1
	#server celeron 10.101.0.1:31300
	#server local 10.101.23.9:31300
	contimeout	3000
	clitimeout	150000
	srvtimeout	150000
	maxconn 60000
	redispatch
	retries	3
	grace 3000
	#rsprep	^Server.* Server:\ IIS
	#rspdel	^Server.*
	rspadd Set-Cookie:\ SERVERID=12345678;\ path=/
	#rsprep ^(Date:\ )([^,]*)(,\ )(.*) LaDate\ est:\ \4\ (\2)
	
listen proxy1 0.0.0.0:3128
	disabled
	mode	http
        cookie SERVERID insert indirect
	#dispatch 127.0.0.1:8080
	server srv1 127.0.0.1:8080
 	#server srv2 192.168.12.3:8080
	contimeout	3000
	clitimeout	450000
	srvtimeout	450000
	maxconn 60000
	redispatch
	retries	3
	grace 3000
	rspdel ^Via:.*
	monitor-net	192.168.12.252/30
	

listen proxy2 0.0.0.0:3129
	disabled
	mode	http
	transparent
#	dispatch 127.0.0.1:80
	contimeout	3000
	clitimeout	150000
	srvtimeout	150000
	maxconn 60000
	retries	3
	grace 3000

#	log	10.101.11.1 local1
#	log	10.101.11.1 local2

#	cliexp	^(.*ASPSESSIONID.*=)(.*) \1FENICGGCBECLFFEEOAEAIFGF
#	cliexp	^(GET.*)(.free.fr)(.*) \1.online.fr\3
#	cliexp	^(POST.*)(.free.fr)(.*) \1.online.fr\3
#	cliexp	^Proxy-Connection:.*	Proxy-Connection:\ close
#	srvexp	^(Location:\ )([^:]*://[^/]*)(.*) \1\3

listen health 0.0.0.0:3130
	mode	health
	clitimeout	1500
	srvtimeout	1500
	maxconn 6000
	grace 0


listen health 0.0.0.0:31300
	mode	health
	option  httpchk
	clitimeout	1500
	srvtimeout	1500
	maxconn 6000
	grace 0