blob: 6aed525edbc27e1c8142aa7b831c83cb9460c35c [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
10 server tuxlocal 127.0.0.1:80 cookie cookie1 check
11 server tuxceleron 10.101.0.1:80 cookie cookie2 check
12 #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
15 #server local 127.0.0.1:3130
16 #server celeron 10.101.0.1:80 cookie srv1
17 #server celeron 10.101.0.1:31300
18 #server local 10.101.23.9:31300
willy tarreau0f7af912005-12-17 12:21:26 +010019 contimeout 3000
20 clitimeout 150000
21 srvtimeout 150000
22 maxconn 60000
willy tarreau5cbea6f2005-12-17 12:48:26 +010023 redispatch
24 retries 3
25 grace 3000
26 #rsprep ^Server.* Server:\ IIS
27 #rspdel ^Server.*
28 #rspadd Set-Cookie:\ mycookie=0;\ path=/
29 #rsprep ^(Date:\ )([^,]*)(,\ )(.*) LaDate\ est:\ \4\ (\2)
30
31listen proxy1 0.0.0.0:3128
32 mode http
33 cookie SERVERID indirect
34 dispatch 127.0.0.1:8080
35 server srv1 127.0.0.1:8080
36 #server srv2 192.168.12.3:8080
37 contimeout 3000
38 clitimeout 450000
39 srvtimeout 450000
40 maxconn 60000
41 redispatch
willy tarreau0f7af912005-12-17 12:21:26 +010042 retries 3
43 grace 3000
willy tarreau5cbea6f2005-12-17 12:48:26 +010044
willy tarreau0f7af912005-12-17 12:21:26 +010045
46listen proxy2 0.0.0.0:3129
47 mode http
willy tarreau5cbea6f2005-12-17 12:48:26 +010048 transparent
49# dispatch 127.0.0.1:80
willy tarreau0f7af912005-12-17 12:21:26 +010050 contimeout 3000
51 clitimeout 150000
52 srvtimeout 150000
53 maxconn 60000
54 retries 3
55 grace 3000
56
57# log 10.101.11.1 local1
58# log 10.101.11.1 local2
59
60# cliexp ^(.*ASPSESSIONID.*=)(.*) \1FENICGGCBECLFFEEOAEAIFGF
61# cliexp ^(GET.*)(.free.fr)(.*) \1.online.fr\3
62# cliexp ^(POST.*)(.free.fr)(.*) \1.online.fr\3
63# cliexp ^Proxy-Connection:.* Proxy-Connection:\ close
64# srvexp ^(Location:\ )([^:]*://[^/]*)(.*) \1\3
65
66listen health 0.0.0.0:3130
67 mode health
68 clitimeout 1500
69 srvtimeout 1500
willy tarreau5cbea6f2005-12-17 12:48:26 +010070 maxconn 6000
71 grace 0
72
73
74listen health 0.0.0.0:31300
75 mode health
76 clitimeout 1500
77 srvtimeout 1500
78 maxconn 6000
willy tarreau0f7af912005-12-17 12:21:26 +010079 grace 0