blob: ab63dbae2081994c4a485defefcbee250905ba87 [file] [log] [blame]
willy tarreau9fe663a2005-12-17 13:02:59 +01001global
2 log 127.0.0.1 local0
3# log 127.0.0.1 local1
4 maxconn 4000
5 uid 0
6 gid 0
7# chroot /tmp
8# nbproc 4
9# 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 tarreau9fe663a2005-12-17 13:02:59 +010015# log 127.0.0.1 local0
16# log 127.0.0.1 local1
17 log global
willy tarreau5cbea6f2005-12-17 12:48:26 +010018 #mode tcp
19 cookie SERVERID insert indirect
20 balance roundrobin
21 #dispatch 127.0.0.1:3130
22 #dispatch 127.0.0.1:31300
23 #dispatch 127.0.0.1:80
24 #dispatch 127.0.0.1:22
willy tarreau9fe663a2005-12-17 13:02:59 +010025 #server nc 127.0.0.1:8080 cookie cookie1 check
26 server tuxlocal 127.0.0.1:80 cookie cookie1 check
willy tarreauef900ab2005-12-17 12:52:52 +010027 #server tuxceleron 10.101.0.1:80 cookie cookie2 check
willy tarreau5cbea6f2005-12-17 12:48:26 +010028 #server telnet 127.0.0.1:23
29 #server ssh 127.0.0.1:22
willy tarreau9fe663a2005-12-17 13:02:59 +010030 #server local 127.0.0.1:3130 cookie cookie3 check
31 #server ko 127.0.0.1:0 cookie cookie3 check
willy tarreauef900ab2005-12-17 12:52:52 +010032 #server local 127.0.0.1:8001 cookie cookie3 check
willy tarreau5cbea6f2005-12-17 12:48:26 +010033 #server local 127.0.0.1:3130
34 #server celeron 10.101.0.1:80 cookie srv1
35 #server celeron 10.101.0.1:31300
36 #server local 10.101.23.9:31300
willy tarreau0f7af912005-12-17 12:21:26 +010037 contimeout 3000
38 clitimeout 150000
39 srvtimeout 150000
40 maxconn 60000
willy tarreau5cbea6f2005-12-17 12:48:26 +010041 redispatch
42 retries 3
43 grace 3000
44 #rsprep ^Server.* Server:\ IIS
45 #rspdel ^Server.*
46 #rspadd Set-Cookie:\ mycookie=0;\ path=/
47 #rsprep ^(Date:\ )([^,]*)(,\ )(.*) LaDate\ est:\ \4\ (\2)
willy tarreau9fe663a2005-12-17 13:02:59 +010048 # force connection:close
49 #reqidel ^Connection:
50 #rspidel ^Connection:
51 #reqadd Connection:\ close
52 #rspadd Connection:\ close
53 # processing options
54 #option keepalive
55 option forwardfor
56 option httplog
willy tarreau5cbea6f2005-12-17 12:48:26 +010057
willy tarreauef900ab2005-12-17 12:52:52 +010058listen proxy1 0.0.0.0:8001
59 mode http
60 #mode tcp
61 dispatch 127.0.0.1:80
62 #dispatch 127.0.0.1:31300
63 #dispatch 127.0.0.1:80
64 #dispatch 127.0.0.1:22
65 #server tuxlocal 127.0.0.1:80 cookie cookie1 check
66 #server tuxceleron 10.101.0.1:80 cookie cookie2 check
67 #server telnet 127.0.0.1:23
68 #server ssh 127.0.0.1:22
69 #server local 127.0.0.1:3130 cookie cookie3 check
70 #server local 127.0.0.1:3130
71 #server celeron 10.101.0.1:80 cookie srv1
72 #server celeron 10.101.0.1:31300
73 #server local 10.101.23.9:31300
74 contimeout 3000
75 clitimeout 150000
76 srvtimeout 150000
77 maxconn 60000
78 redispatch
79 retries 3
80 grace 3000
81 #rsprep ^Server.* Server:\ IIS
82 #rspdel ^Server.*
83 rspadd Set-Cookie:\ SERVERID=12345678;\ path=/
84 #rsprep ^(Date:\ )([^,]*)(,\ )(.*) LaDate\ est:\ \4\ (\2)
85
willy tarreau5cbea6f2005-12-17 12:48:26 +010086listen proxy1 0.0.0.0:3128
willy tarreauef900ab2005-12-17 12:52:52 +010087 disabled
willy tarreau5cbea6f2005-12-17 12:48:26 +010088 mode http
willy tarreauef900ab2005-12-17 12:52:52 +010089 cookie SERVERID insert indirect
90 #dispatch 127.0.0.1:8080
willy tarreau5cbea6f2005-12-17 12:48:26 +010091 server srv1 127.0.0.1:8080
92 #server srv2 192.168.12.3:8080
93 contimeout 3000
94 clitimeout 450000
95 srvtimeout 450000
96 maxconn 60000
97 redispatch
willy tarreau0f7af912005-12-17 12:21:26 +010098 retries 3
99 grace 3000
willy tarreauef900ab2005-12-17 12:52:52 +0100100 rspdel ^Via:.*
willy tarreau5cbea6f2005-12-17 12:48:26 +0100101
willy tarreau0f7af912005-12-17 12:21:26 +0100102
103listen proxy2 0.0.0.0:3129
willy tarreauef900ab2005-12-17 12:52:52 +0100104 disabled
willy tarreau0f7af912005-12-17 12:21:26 +0100105 mode http
willy tarreau5cbea6f2005-12-17 12:48:26 +0100106 transparent
107# dispatch 127.0.0.1:80
willy tarreau0f7af912005-12-17 12:21:26 +0100108 contimeout 3000
109 clitimeout 150000
110 srvtimeout 150000
111 maxconn 60000
112 retries 3
113 grace 3000
114
115# log 10.101.11.1 local1
116# log 10.101.11.1 local2
117
118# cliexp ^(.*ASPSESSIONID.*=)(.*) \1FENICGGCBECLFFEEOAEAIFGF
119# cliexp ^(GET.*)(.free.fr)(.*) \1.online.fr\3
120# cliexp ^(POST.*)(.free.fr)(.*) \1.online.fr\3
121# cliexp ^Proxy-Connection:.* Proxy-Connection:\ close
122# srvexp ^(Location:\ )([^:]*://[^/]*)(.*) \1\3
123
124listen health 0.0.0.0:3130
125 mode health
126 clitimeout 1500
127 srvtimeout 1500
willy tarreau5cbea6f2005-12-17 12:48:26 +0100128 maxconn 6000
129 grace 0
130
131
132listen health 0.0.0.0:31300
133 mode health
134 clitimeout 1500
135 srvtimeout 1500
136 maxconn 6000
willy tarreau0f7af912005-12-17 12:21:26 +0100137 grace 0