* released 1.1.7
* added option forwardfor
* added reqirep, reqidel, reqiallow, reqideny, rspirep, rspidel
* added "log global" in "listen" section.
* added a new "global" section :
- logs
- debug, quiet, daemon modes
- uid, gid, chroot, nbproc, maxconn
* added a TODO file
* updated example files
2005-12-17 12:02:59 +00:00
|
|
|
global
|
2005-12-17 12:08:06 +00:00
|
|
|
# log 127.0.0.1 local0
|
* released 1.1.7
* added option forwardfor
* added reqirep, reqidel, reqiallow, reqideny, rspirep, rspidel
* added "log global" in "listen" section.
* added a new "global" section :
- logs
- debug, quiet, daemon modes
- uid, gid, chroot, nbproc, maxconn
* added a TODO file
* updated example files
2005-12-17 12:02:59 +00:00
|
|
|
# log 127.0.0.1 local1
|
|
|
|
maxconn 4000
|
|
|
|
uid 0
|
|
|
|
gid 0
|
|
|
|
# chroot /tmp
|
2005-12-17 12:08:06 +00:00
|
|
|
# nbproc 2
|
* released 1.1.7
* added option forwardfor
* added reqirep, reqidel, reqiallow, reqideny, rspirep, rspidel
* added "log global" in "listen" section.
* added a new "global" section :
- logs
- debug, quiet, daemon modes
- uid, gid, chroot, nbproc, maxconn
* added a TODO file
* updated example files
2005-12-17 12:02:59 +00:00
|
|
|
# daemon
|
|
|
|
# debug
|
|
|
|
# quiet
|
|
|
|
|
2005-12-17 11:48:26 +00:00
|
|
|
listen proxy1 0.0.0.0:8000
|
2005-12-17 11:21:26 +00:00
|
|
|
mode http
|
2005-12-17 12:08:06 +00:00
|
|
|
# source 127.0.0.2:0
|
* released 1.1.7
* added option forwardfor
* added reqirep, reqidel, reqiallow, reqideny, rspirep, rspidel
* added "log global" in "listen" section.
* added a new "global" section :
- logs
- debug, quiet, daemon modes
- uid, gid, chroot, nbproc, maxconn
* added a TODO file
* updated example files
2005-12-17 12:02:59 +00:00
|
|
|
# log 127.0.0.1 local0
|
|
|
|
# log 127.0.0.1 local1
|
2005-12-17 12:08:06 +00:00
|
|
|
# log global
|
2005-12-17 11:48:26 +00:00
|
|
|
#mode tcp
|
|
|
|
cookie SERVERID insert indirect
|
|
|
|
balance roundrobin
|
|
|
|
#dispatch 127.0.0.1:3130
|
|
|
|
#dispatch 127.0.0.1:31300
|
|
|
|
#dispatch 127.0.0.1:80
|
|
|
|
#dispatch 127.0.0.1:22
|
2005-12-17 12:32:07 +00:00
|
|
|
option httpchk
|
|
|
|
server test 10.1.1.2:80 cookie cookie1 check inter 300
|
|
|
|
# server nc 127.0.0.1:8080 cookie cookie1 check inter 300
|
2005-12-17 12:08:06 +00:00
|
|
|
# server tuxlocal0 10.101.23.9:80 cookie cookie1 check
|
|
|
|
# server tuxlocal1 127.0.0.1:80 cookie cookie1 check
|
|
|
|
# server tuxlocal2 127.0.0.1:80 cookie cookie2 check
|
|
|
|
# server tuxlocal3 127.0.0.1:80 cookie cookie3 check
|
|
|
|
# server tuxlocal4 127.0.0.1:80 cookie cookie4 check
|
|
|
|
# server vax 10.101.14.1:80 cookie cookie1 check
|
2005-12-17 11:52:52 +00:00
|
|
|
#server tuxceleron 10.101.0.1:80 cookie cookie2 check
|
2005-12-17 11:48:26 +00:00
|
|
|
#server telnet 127.0.0.1:23
|
|
|
|
#server ssh 127.0.0.1:22
|
* released 1.1.7
* added option forwardfor
* added reqirep, reqidel, reqiallow, reqideny, rspirep, rspidel
* added "log global" in "listen" section.
* added a new "global" section :
- logs
- debug, quiet, daemon modes
- uid, gid, chroot, nbproc, maxconn
* added a TODO file
* updated example files
2005-12-17 12:02:59 +00:00
|
|
|
#server local 127.0.0.1:3130 cookie cookie3 check
|
|
|
|
#server ko 127.0.0.1:0 cookie cookie3 check
|
2005-12-17 11:52:52 +00:00
|
|
|
#server local 127.0.0.1:8001 cookie cookie3 check
|
2005-12-17 11:48:26 +00:00
|
|
|
#server local 127.0.0.1:3130
|
|
|
|
#server celeron 10.101.0.1:80 cookie srv1
|
|
|
|
#server celeron 10.101.0.1:31300
|
|
|
|
#server local 10.101.23.9:31300
|
2005-12-17 11:21:26 +00:00
|
|
|
contimeout 3000
|
|
|
|
clitimeout 150000
|
|
|
|
srvtimeout 150000
|
|
|
|
maxconn 60000
|
2005-12-17 11:48:26 +00:00
|
|
|
redispatch
|
|
|
|
retries 3
|
|
|
|
grace 3000
|
|
|
|
#rsprep ^Server.* Server:\ IIS
|
|
|
|
#rspdel ^Server.*
|
|
|
|
#rspadd Set-Cookie:\ mycookie=0;\ path=/
|
|
|
|
#rsprep ^(Date:\ )([^,]*)(,\ )(.*) LaDate\ est:\ \4\ (\2)
|
* released 1.1.7
* added option forwardfor
* added reqirep, reqidel, reqiallow, reqideny, rspirep, rspidel
* added "log global" in "listen" section.
* added a new "global" section :
- logs
- debug, quiet, daemon modes
- uid, gid, chroot, nbproc, maxconn
* added a TODO file
* updated example files
2005-12-17 12:02:59 +00:00
|
|
|
# force connection:close
|
|
|
|
#reqidel ^Connection:
|
2005-12-17 12:08:06 +00:00
|
|
|
#rspidel ^Connection:
|
* released 1.1.7
* added option forwardfor
* added reqirep, reqidel, reqiallow, reqideny, rspirep, rspidel
* added "log global" in "listen" section.
* added a new "global" section :
- logs
- debug, quiet, daemon modes
- uid, gid, chroot, nbproc, maxconn
* added a TODO file
* updated example files
2005-12-17 12:02:59 +00:00
|
|
|
#reqadd Connection:\ close
|
|
|
|
#rspadd Connection:\ close
|
|
|
|
# processing options
|
|
|
|
#option keepalive
|
|
|
|
option forwardfor
|
|
|
|
option httplog
|
2005-12-17 12:08:06 +00:00
|
|
|
option dontlognull
|
|
|
|
# reqirep ^(Test:\ ) \0_toto_\1_toto
|
2005-12-17 12:11:56 +00:00
|
|
|
# reqidel ^X-Forwarded-for:
|
2005-12-17 12:08:06 +00:00
|
|
|
# reqirep ^(GET|POST)\ .* \0
|
|
|
|
# reqirep ^(Host:|Connection:|User-agent:|Cookie:)\ .* \0
|
|
|
|
# reqideny ^
|
2005-12-17 11:48:26 +00:00
|
|
|
|
2005-12-17 11:52:52 +00:00
|
|
|
listen proxy1 0.0.0.0:8001
|
|
|
|
mode http
|
|
|
|
#mode tcp
|
|
|
|
dispatch 127.0.0.1:80
|
|
|
|
#dispatch 127.0.0.1:31300
|
|
|
|
#dispatch 127.0.0.1:80
|
|
|
|
#dispatch 127.0.0.1:22
|
|
|
|
#server tuxlocal 127.0.0.1:80 cookie cookie1 check
|
|
|
|
#server tuxceleron 10.101.0.1:80 cookie cookie2 check
|
|
|
|
#server telnet 127.0.0.1:23
|
|
|
|
#server ssh 127.0.0.1:22
|
|
|
|
#server local 127.0.0.1:3130 cookie cookie3 check
|
|
|
|
#server local 127.0.0.1:3130
|
|
|
|
#server celeron 10.101.0.1:80 cookie srv1
|
|
|
|
#server celeron 10.101.0.1:31300
|
|
|
|
#server local 10.101.23.9:31300
|
|
|
|
contimeout 3000
|
|
|
|
clitimeout 150000
|
|
|
|
srvtimeout 150000
|
|
|
|
maxconn 60000
|
|
|
|
redispatch
|
|
|
|
retries 3
|
|
|
|
grace 3000
|
|
|
|
#rsprep ^Server.* Server:\ IIS
|
|
|
|
#rspdel ^Server.*
|
|
|
|
rspadd Set-Cookie:\ SERVERID=12345678;\ path=/
|
|
|
|
#rsprep ^(Date:\ )([^,]*)(,\ )(.*) LaDate\ est:\ \4\ (\2)
|
|
|
|
|
2005-12-17 11:48:26 +00:00
|
|
|
listen proxy1 0.0.0.0:3128
|
2005-12-17 11:52:52 +00:00
|
|
|
disabled
|
2005-12-17 11:48:26 +00:00
|
|
|
mode http
|
2005-12-17 11:52:52 +00:00
|
|
|
cookie SERVERID insert indirect
|
|
|
|
#dispatch 127.0.0.1:8080
|
2005-12-17 11:48:26 +00:00
|
|
|
server srv1 127.0.0.1:8080
|
|
|
|
#server srv2 192.168.12.3:8080
|
|
|
|
contimeout 3000
|
|
|
|
clitimeout 450000
|
|
|
|
srvtimeout 450000
|
|
|
|
maxconn 60000
|
|
|
|
redispatch
|
2005-12-17 11:21:26 +00:00
|
|
|
retries 3
|
|
|
|
grace 3000
|
2005-12-17 11:52:52 +00:00
|
|
|
rspdel ^Via:.*
|
2005-12-17 11:48:26 +00:00
|
|
|
|
2005-12-17 11:21:26 +00:00
|
|
|
|
|
|
|
listen proxy2 0.0.0.0:3129
|
2005-12-17 11:52:52 +00:00
|
|
|
disabled
|
2005-12-17 11:21:26 +00:00
|
|
|
mode http
|
2005-12-17 11:48:26 +00:00
|
|
|
transparent
|
|
|
|
# dispatch 127.0.0.1:80
|
2005-12-17 11:21:26 +00:00
|
|
|
contimeout 3000
|
|
|
|
clitimeout 150000
|
|
|
|
srvtimeout 150000
|
|
|
|
maxconn 60000
|
|
|
|
retries 3
|
|
|
|
grace 3000
|
|
|
|
|
|
|
|
# log 10.101.11.1 local1
|
|
|
|
# log 10.101.11.1 local2
|
|
|
|
|
|
|
|
# cliexp ^(.*ASPSESSIONID.*=)(.*) \1FENICGGCBECLFFEEOAEAIFGF
|
|
|
|
# cliexp ^(GET.*)(.free.fr)(.*) \1.online.fr\3
|
|
|
|
# cliexp ^(POST.*)(.free.fr)(.*) \1.online.fr\3
|
|
|
|
# cliexp ^Proxy-Connection:.* Proxy-Connection:\ close
|
|
|
|
# srvexp ^(Location:\ )([^:]*://[^/]*)(.*) \1\3
|
|
|
|
|
|
|
|
listen health 0.0.0.0:3130
|
|
|
|
mode health
|
|
|
|
clitimeout 1500
|
|
|
|
srvtimeout 1500
|
2005-12-17 11:48:26 +00:00
|
|
|
maxconn 6000
|
|
|
|
grace 0
|
|
|
|
|
|
|
|
|
|
|
|
listen health 0.0.0.0:31300
|
|
|
|
mode health
|
|
|
|
clitimeout 1500
|
|
|
|
srvtimeout 1500
|
|
|
|
maxconn 6000
|
2005-12-17 11:21:26 +00:00
|
|
|
grace 0
|