blob: 423ca2c0a0b32e060b740c3823c74ef684d6f97f [file] [log] [blame]
willy tarreau5cbea6f2005-12-17 12:48:26 +01001listen proxy1 0.0.0.0:8000
willy tarreau0f7af912005-12-17 12:21:26 +01002 mode http
willy tarreau5cbea6f2005-12-17 12:48:26 +01003 #mode tcp
4 cookie SERVERID insert indirect
5 balance roundrobin
6 #dispatch 127.0.0.1:3130
7 #dispatch 127.0.0.1:31300
8 #dispatch 127.0.0.1:80
9 #dispatch 127.0.0.1:22
willy tarreauef900ab2005-12-17 12:52:52 +010010 #server tuxlocal 127.0.0.1:80 cookie cookie1 check
11 #server tuxceleron 10.101.0.1:80 cookie cookie2 check
willy tarreau5cbea6f2005-12-17 12:48:26 +010012 #server telnet 127.0.0.1:23
13 #server ssh 127.0.0.1:22
14 server local 127.0.0.1:3130 cookie cookie3 check
willy tarreauef900ab2005-12-17 12:52:52 +010015 #server local 127.0.0.1:8001 cookie cookie3 check
willy tarreau5cbea6f2005-12-17 12:48:26 +010016 #server local 127.0.0.1:3130
17 #server celeron 10.101.0.1:80 cookie srv1
18 #server celeron 10.101.0.1:31300
19 #server local 10.101.23.9:31300
willy tarreau0f7af912005-12-17 12:21:26 +010020 contimeout 3000
21 clitimeout 150000
22 srvtimeout 150000
23 maxconn 60000
willy tarreau5cbea6f2005-12-17 12:48:26 +010024 redispatch
25 retries 3
26 grace 3000
27 #rsprep ^Server.* Server:\ IIS
28 #rspdel ^Server.*
29 #rspadd Set-Cookie:\ mycookie=0;\ path=/
30 #rsprep ^(Date:\ )([^,]*)(,\ )(.*) LaDate\ est:\ \4\ (\2)
31
willy tarreauef900ab2005-12-17 12:52:52 +010032listen proxy1 0.0.0.0:8001
33 mode http
34 #mode tcp
35 dispatch 127.0.0.1:80
36 #dispatch 127.0.0.1:31300
37 #dispatch 127.0.0.1:80
38 #dispatch 127.0.0.1:22
39 #server tuxlocal 127.0.0.1:80 cookie cookie1 check
40 #server tuxceleron 10.101.0.1:80 cookie cookie2 check
41 #server telnet 127.0.0.1:23
42 #server ssh 127.0.0.1:22
43 #server local 127.0.0.1:3130 cookie cookie3 check
44 #server local 127.0.0.1:3130
45 #server celeron 10.101.0.1:80 cookie srv1
46 #server celeron 10.101.0.1:31300
47 #server local 10.101.23.9:31300
48 contimeout 3000
49 clitimeout 150000
50 srvtimeout 150000
51 maxconn 60000
52 redispatch
53 retries 3
54 grace 3000
55 #rsprep ^Server.* Server:\ IIS
56 #rspdel ^Server.*
57 rspadd Set-Cookie:\ SERVERID=12345678;\ path=/
58 #rsprep ^(Date:\ )([^,]*)(,\ )(.*) LaDate\ est:\ \4\ (\2)
59
willy tarreau5cbea6f2005-12-17 12:48:26 +010060listen proxy1 0.0.0.0:3128
willy tarreauef900ab2005-12-17 12:52:52 +010061 disabled
willy tarreau5cbea6f2005-12-17 12:48:26 +010062 mode http
willy tarreauef900ab2005-12-17 12:52:52 +010063 cookie SERVERID insert indirect
64 #dispatch 127.0.0.1:8080
willy tarreau5cbea6f2005-12-17 12:48:26 +010065 server srv1 127.0.0.1:8080
66 #server srv2 192.168.12.3:8080
67 contimeout 3000
68 clitimeout 450000
69 srvtimeout 450000
70 maxconn 60000
71 redispatch
willy tarreau0f7af912005-12-17 12:21:26 +010072 retries 3
73 grace 3000
willy tarreauef900ab2005-12-17 12:52:52 +010074 rspdel ^Via:.*
willy tarreau5cbea6f2005-12-17 12:48:26 +010075
willy tarreau0f7af912005-12-17 12:21:26 +010076
77listen proxy2 0.0.0.0:3129
willy tarreauef900ab2005-12-17 12:52:52 +010078 disabled
willy tarreau0f7af912005-12-17 12:21:26 +010079 mode http
willy tarreau5cbea6f2005-12-17 12:48:26 +010080 transparent
81# dispatch 127.0.0.1:80
willy tarreau0f7af912005-12-17 12:21:26 +010082 contimeout 3000
83 clitimeout 150000
84 srvtimeout 150000
85 maxconn 60000
86 retries 3
87 grace 3000
88
89# log 10.101.11.1 local1
90# log 10.101.11.1 local2
91
92# cliexp ^(.*ASPSESSIONID.*=)(.*) \1FENICGGCBECLFFEEOAEAIFGF
93# cliexp ^(GET.*)(.free.fr)(.*) \1.online.fr\3
94# cliexp ^(POST.*)(.free.fr)(.*) \1.online.fr\3
95# cliexp ^Proxy-Connection:.* Proxy-Connection:\ close
96# srvexp ^(Location:\ )([^:]*://[^/]*)(.*) \1\3
97
98listen health 0.0.0.0:3130
99 mode health
100 clitimeout 1500
101 srvtimeout 1500
willy tarreau5cbea6f2005-12-17 12:48:26 +0100102 maxconn 6000
103 grace 0
104
105
106listen health 0.0.0.0:31300
107 mode health
108 clitimeout 1500
109 srvtimeout 1500
110 maxconn 6000
willy tarreau0f7af912005-12-17 12:21:26 +0100111 grace 0