blob: 96d5ba5520c534c4967042ca80bbd721ff26ddec [file] [log] [blame]
willy tarreau9fe663a2005-12-17 13:02:59 +01001global
willy tarreaua1598082005-12-17 13:08:06 +01002# log 127.0.0.1 local0
willy tarreau9fe663a2005-12-17 13:02:59 +01003# log 127.0.0.1 local1
4 maxconn 4000
5 uid 0
6 gid 0
7# chroot /tmp
willy tarreaua1598082005-12-17 13:08:06 +01008# nbproc 2
willy tarreau9fe663a2005-12-17 13:02:59 +01009# daemon
10# debug
11# quiet
12
willy tarreau5cbea6f2005-12-17 12:48:26 +010013listen proxy1 0.0.0.0:8000
willy tarreau0f7af912005-12-17 12:21:26 +010014 mode http
willy tarreaua1598082005-12-17 13:08:06 +010015# source 127.0.0.2:0
willy tarreau9fe663a2005-12-17 13:02:59 +010016# log 127.0.0.1 local0
17# log 127.0.0.1 local1
willy tarreaua1598082005-12-17 13:08:06 +010018# log global
willy tarreau5cbea6f2005-12-17 12:48:26 +010019 #mode tcp
20 cookie SERVERID insert indirect
21 balance roundrobin
22 #dispatch 127.0.0.1:3130
23 #dispatch 127.0.0.1:31300
24 #dispatch 127.0.0.1:80
25 #dispatch 127.0.0.1:22
willy tarreaua1598082005-12-17 13:08:06 +010026 server nc 127.0.0.1:8080 cookie cookie1 check
27# server tuxlocal0 10.101.23.9:80 cookie cookie1 check
28# server tuxlocal1 127.0.0.1:80 cookie cookie1 check
29# server tuxlocal2 127.0.0.1:80 cookie cookie2 check
30# server tuxlocal3 127.0.0.1:80 cookie cookie3 check
31# server tuxlocal4 127.0.0.1:80 cookie cookie4 check
32# server vax 10.101.14.1:80 cookie cookie1 check
willy tarreauef900ab2005-12-17 12:52:52 +010033 #server tuxceleron 10.101.0.1:80 cookie cookie2 check
willy tarreau5cbea6f2005-12-17 12:48:26 +010034 #server telnet 127.0.0.1:23
35 #server ssh 127.0.0.1:22
willy tarreau9fe663a2005-12-17 13:02:59 +010036 #server local 127.0.0.1:3130 cookie cookie3 check
37 #server ko 127.0.0.1:0 cookie cookie3 check
willy tarreauef900ab2005-12-17 12:52:52 +010038 #server local 127.0.0.1:8001 cookie cookie3 check
willy tarreau5cbea6f2005-12-17 12:48:26 +010039 #server local 127.0.0.1:3130
40 #server celeron 10.101.0.1:80 cookie srv1
41 #server celeron 10.101.0.1:31300
42 #server local 10.101.23.9:31300
willy tarreau0f7af912005-12-17 12:21:26 +010043 contimeout 3000
44 clitimeout 150000
45 srvtimeout 150000
46 maxconn 60000
willy tarreau5cbea6f2005-12-17 12:48:26 +010047 redispatch
48 retries 3
49 grace 3000
50 #rsprep ^Server.* Server:\ IIS
51 #rspdel ^Server.*
52 #rspadd Set-Cookie:\ mycookie=0;\ path=/
53 #rsprep ^(Date:\ )([^,]*)(,\ )(.*) LaDate\ est:\ \4\ (\2)
willy tarreau9fe663a2005-12-17 13:02:59 +010054 # force connection:close
55 #reqidel ^Connection:
willy tarreaua1598082005-12-17 13:08:06 +010056 #rspidel ^Connection:
willy tarreau9fe663a2005-12-17 13:02:59 +010057 #reqadd Connection:\ close
58 #rspadd Connection:\ close
59 # processing options
60 #option keepalive
61 option forwardfor
62 option httplog
willy tarreaua1598082005-12-17 13:08:06 +010063 option dontlognull
64# reqirep ^(Test:\ ) \0_toto_\1_toto
65# reqidel ^Cookie:\ SERVERID=
66# reqirep ^(GET|POST)\ .* \0
67# reqirep ^(Host:|Connection:|User-agent:|Cookie:)\ .* \0
68# reqideny ^
willy tarreau5cbea6f2005-12-17 12:48:26 +010069
willy tarreauef900ab2005-12-17 12:52:52 +010070listen proxy1 0.0.0.0:8001
71 mode http
72 #mode tcp
73 dispatch 127.0.0.1:80
74 #dispatch 127.0.0.1:31300
75 #dispatch 127.0.0.1:80
76 #dispatch 127.0.0.1:22
77 #server tuxlocal 127.0.0.1:80 cookie cookie1 check
78 #server tuxceleron 10.101.0.1:80 cookie cookie2 check
79 #server telnet 127.0.0.1:23
80 #server ssh 127.0.0.1:22
81 #server local 127.0.0.1:3130 cookie cookie3 check
82 #server local 127.0.0.1:3130
83 #server celeron 10.101.0.1:80 cookie srv1
84 #server celeron 10.101.0.1:31300
85 #server local 10.101.23.9:31300
86 contimeout 3000
87 clitimeout 150000
88 srvtimeout 150000
89 maxconn 60000
90 redispatch
91 retries 3
92 grace 3000
93 #rsprep ^Server.* Server:\ IIS
94 #rspdel ^Server.*
95 rspadd Set-Cookie:\ SERVERID=12345678;\ path=/
96 #rsprep ^(Date:\ )([^,]*)(,\ )(.*) LaDate\ est:\ \4\ (\2)
97
willy tarreau5cbea6f2005-12-17 12:48:26 +010098listen proxy1 0.0.0.0:3128
willy tarreauef900ab2005-12-17 12:52:52 +010099 disabled
willy tarreau5cbea6f2005-12-17 12:48:26 +0100100 mode http
willy tarreauef900ab2005-12-17 12:52:52 +0100101 cookie SERVERID insert indirect
102 #dispatch 127.0.0.1:8080
willy tarreau5cbea6f2005-12-17 12:48:26 +0100103 server srv1 127.0.0.1:8080
104 #server srv2 192.168.12.3:8080
105 contimeout 3000
106 clitimeout 450000
107 srvtimeout 450000
108 maxconn 60000
109 redispatch
willy tarreau0f7af912005-12-17 12:21:26 +0100110 retries 3
111 grace 3000
willy tarreauef900ab2005-12-17 12:52:52 +0100112 rspdel ^Via:.*
willy tarreau5cbea6f2005-12-17 12:48:26 +0100113
willy tarreau0f7af912005-12-17 12:21:26 +0100114
115listen proxy2 0.0.0.0:3129
willy tarreauef900ab2005-12-17 12:52:52 +0100116 disabled
willy tarreau0f7af912005-12-17 12:21:26 +0100117 mode http
willy tarreau5cbea6f2005-12-17 12:48:26 +0100118 transparent
119# dispatch 127.0.0.1:80
willy tarreau0f7af912005-12-17 12:21:26 +0100120 contimeout 3000
121 clitimeout 150000
122 srvtimeout 150000
123 maxconn 60000
124 retries 3
125 grace 3000
126
127# log 10.101.11.1 local1
128# log 10.101.11.1 local2
129
130# cliexp ^(.*ASPSESSIONID.*=)(.*) \1FENICGGCBECLFFEEOAEAIFGF
131# cliexp ^(GET.*)(.free.fr)(.*) \1.online.fr\3
132# cliexp ^(POST.*)(.free.fr)(.*) \1.online.fr\3
133# cliexp ^Proxy-Connection:.* Proxy-Connection:\ close
134# srvexp ^(Location:\ )([^:]*://[^/]*)(.*) \1\3
135
136listen health 0.0.0.0:3130
137 mode health
138 clitimeout 1500
139 srvtimeout 1500
willy tarreau5cbea6f2005-12-17 12:48:26 +0100140 maxconn 6000
141 grace 0
142
143
144listen health 0.0.0.0:31300
145 mode health
146 clitimeout 1500
147 srvtimeout 1500
148 maxconn 6000
willy tarreau0f7af912005-12-17 12:21:26 +0100149 grace 0