blob: 0850c40dfa5393eee05d1fa7c77b38db1d068c30 [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 tarreaubc4e1fb2005-12-17 13:32:07 +010026 option httpchk
27 server test 10.1.1.2:80 cookie cookie1 check inter 300
28# server nc 127.0.0.1:8080 cookie cookie1 check inter 300
willy tarreaua1598082005-12-17 13:08:06 +010029# server tuxlocal0 10.101.23.9:80 cookie cookie1 check
30# server tuxlocal1 127.0.0.1:80 cookie cookie1 check
31# server tuxlocal2 127.0.0.1:80 cookie cookie2 check
32# server tuxlocal3 127.0.0.1:80 cookie cookie3 check
33# server tuxlocal4 127.0.0.1:80 cookie cookie4 check
34# server vax 10.101.14.1:80 cookie cookie1 check
willy tarreauef900ab2005-12-17 12:52:52 +010035 #server tuxceleron 10.101.0.1:80 cookie cookie2 check
willy tarreau5cbea6f2005-12-17 12:48:26 +010036 #server telnet 127.0.0.1:23
37 #server ssh 127.0.0.1:22
willy tarreau9fe663a2005-12-17 13:02:59 +010038 #server local 127.0.0.1:3130 cookie cookie3 check
39 #server ko 127.0.0.1:0 cookie cookie3 check
willy tarreauef900ab2005-12-17 12:52:52 +010040 #server local 127.0.0.1:8001 cookie cookie3 check
willy tarreau5cbea6f2005-12-17 12:48:26 +010041 #server local 127.0.0.1:3130
42 #server celeron 10.101.0.1:80 cookie srv1
43 #server celeron 10.101.0.1:31300
44 #server local 10.101.23.9:31300
willy tarreau0f7af912005-12-17 12:21:26 +010045 contimeout 3000
46 clitimeout 150000
47 srvtimeout 150000
48 maxconn 60000
willy tarreau5cbea6f2005-12-17 12:48:26 +010049 redispatch
50 retries 3
51 grace 3000
52 #rsprep ^Server.* Server:\ IIS
53 #rspdel ^Server.*
54 #rspadd Set-Cookie:\ mycookie=0;\ path=/
55 #rsprep ^(Date:\ )([^,]*)(,\ )(.*) LaDate\ est:\ \4\ (\2)
willy tarreau9fe663a2005-12-17 13:02:59 +010056 # force connection:close
57 #reqidel ^Connection:
willy tarreaua1598082005-12-17 13:08:06 +010058 #rspidel ^Connection:
willy tarreau9fe663a2005-12-17 13:02:59 +010059 #reqadd Connection:\ close
60 #rspadd Connection:\ close
61 # processing options
62 #option keepalive
63 option forwardfor
64 option httplog
willy tarreaua1598082005-12-17 13:08:06 +010065 option dontlognull
66# reqirep ^(Test:\ ) \0_toto_\1_toto
willy tarreau96d40372005-12-17 13:11:56 +010067# reqidel ^X-Forwarded-for:
willy tarreaua1598082005-12-17 13:08:06 +010068# reqirep ^(GET|POST)\ .* \0
69# reqirep ^(Host:|Connection:|User-agent:|Cookie:)\ .* \0
70# reqideny ^
willy tarreau5cbea6f2005-12-17 12:48:26 +010071
willy tarreauef900ab2005-12-17 12:52:52 +010072listen proxy1 0.0.0.0:8001
73 mode http
74 #mode tcp
75 dispatch 127.0.0.1:80
76 #dispatch 127.0.0.1:31300
77 #dispatch 127.0.0.1:80
78 #dispatch 127.0.0.1:22
79 #server tuxlocal 127.0.0.1:80 cookie cookie1 check
80 #server tuxceleron 10.101.0.1:80 cookie cookie2 check
81 #server telnet 127.0.0.1:23
82 #server ssh 127.0.0.1:22
83 #server local 127.0.0.1:3130 cookie cookie3 check
84 #server local 127.0.0.1:3130
85 #server celeron 10.101.0.1:80 cookie srv1
86 #server celeron 10.101.0.1:31300
87 #server local 10.101.23.9:31300
88 contimeout 3000
89 clitimeout 150000
90 srvtimeout 150000
91 maxconn 60000
92 redispatch
93 retries 3
94 grace 3000
95 #rsprep ^Server.* Server:\ IIS
96 #rspdel ^Server.*
97 rspadd Set-Cookie:\ SERVERID=12345678;\ path=/
98 #rsprep ^(Date:\ )([^,]*)(,\ )(.*) LaDate\ est:\ \4\ (\2)
99
willy tarreau5cbea6f2005-12-17 12:48:26 +0100100listen proxy1 0.0.0.0:3128
willy tarreauef900ab2005-12-17 12:52:52 +0100101 disabled
willy tarreau5cbea6f2005-12-17 12:48:26 +0100102 mode http
willy tarreauef900ab2005-12-17 12:52:52 +0100103 cookie SERVERID insert indirect
104 #dispatch 127.0.0.1:8080
willy tarreau5cbea6f2005-12-17 12:48:26 +0100105 server srv1 127.0.0.1:8080
106 #server srv2 192.168.12.3:8080
107 contimeout 3000
108 clitimeout 450000
109 srvtimeout 450000
110 maxconn 60000
111 redispatch
willy tarreau0f7af912005-12-17 12:21:26 +0100112 retries 3
113 grace 3000
willy tarreauef900ab2005-12-17 12:52:52 +0100114 rspdel ^Via:.*
willy tarreau5cbea6f2005-12-17 12:48:26 +0100115
willy tarreau0f7af912005-12-17 12:21:26 +0100116
117listen proxy2 0.0.0.0:3129
willy tarreauef900ab2005-12-17 12:52:52 +0100118 disabled
willy tarreau0f7af912005-12-17 12:21:26 +0100119 mode http
willy tarreau5cbea6f2005-12-17 12:48:26 +0100120 transparent
121# dispatch 127.0.0.1:80
willy tarreau0f7af912005-12-17 12:21:26 +0100122 contimeout 3000
123 clitimeout 150000
124 srvtimeout 150000
125 maxconn 60000
126 retries 3
127 grace 3000
128
129# log 10.101.11.1 local1
130# log 10.101.11.1 local2
131
132# cliexp ^(.*ASPSESSIONID.*=)(.*) \1FENICGGCBECLFFEEOAEAIFGF
133# cliexp ^(GET.*)(.free.fr)(.*) \1.online.fr\3
134# cliexp ^(POST.*)(.free.fr)(.*) \1.online.fr\3
135# cliexp ^Proxy-Connection:.* Proxy-Connection:\ close
136# srvexp ^(Location:\ )([^:]*://[^/]*)(.*) \1\3
137
138listen health 0.0.0.0:3130
139 mode health
140 clitimeout 1500
141 srvtimeout 1500
willy tarreau5cbea6f2005-12-17 12:48:26 +0100142 maxconn 6000
143 grace 0
144
145
146listen health 0.0.0.0:31300
147 mode health
willy tarreau197e8ec2005-12-17 14:10:59 +0100148 option httpchk
willy tarreau5cbea6f2005-12-17 12:48:26 +0100149 clitimeout 1500
150 srvtimeout 1500
151 maxconn 6000
willy tarreau0f7af912005-12-17 12:21:26 +0100152 grace 0