2005-12-17 12:14:35 +00:00
|
|
|
global
|
|
|
|
log 127.0.0.1 local0
|
2005-12-17 12:41:01 +00:00
|
|
|
log 127.0.0.1 local1 notice
|
|
|
|
#log loghost local0 info
|
2005-12-17 12:14:35 +00:00
|
|
|
maxconn 4096
|
|
|
|
chroot /tmp
|
|
|
|
uid 11
|
|
|
|
gid 2
|
|
|
|
daemon
|
|
|
|
#debug
|
|
|
|
#quiet
|
|
|
|
|
|
|
|
listen appli1-rewrite 0.0.0.0:10001
|
|
|
|
log global
|
|
|
|
mode http
|
|
|
|
option httplog
|
|
|
|
option dontlognull
|
|
|
|
cookie SERVERID rewrite
|
|
|
|
balance roundrobin
|
|
|
|
server app1_1 192.168.34.23:8080 cookie app1inst1 check inter 2000 rise 2 fall 5
|
|
|
|
server app1_2 192.168.34.32:8080 cookie app1inst2 check inter 2000 rise 2 fall 5
|
|
|
|
server app1_3 192.168.34.27:8080 cookie app1inst3 check inter 2000 rise 2 fall 5
|
|
|
|
server app1_4 192.168.34.42:8080 cookie app1inst4 check inter 2000 rise 2 fall 5
|
|
|
|
retries 3
|
|
|
|
redispatch
|
|
|
|
maxconn 2000
|
|
|
|
contimeout 5000
|
|
|
|
clitimeout 50000
|
|
|
|
srvtimeout 50000
|
|
|
|
|
|
|
|
listen appli2-insert 0.0.0.0:10002
|
|
|
|
log global
|
|
|
|
mode http
|
|
|
|
option httplog
|
|
|
|
option dontlognull
|
2005-12-17 12:32:07 +00:00
|
|
|
option httpchk
|
2005-12-17 12:14:35 +00:00
|
|
|
balance roundrobin
|
|
|
|
cookie SERVERID insert indirect nocache
|
|
|
|
server inst1 192.168.114.56:80 cookie server01 check inter 2000 fall 3
|
|
|
|
server inst2 192.168.114.56:81 cookie server02 check inter 2000 fall 3
|
2005-12-17 12:41:01 +00:00
|
|
|
capture cookie vgnvisitor= len 32
|
2005-12-17 12:14:35 +00:00
|
|
|
retries 3
|
|
|
|
redispatch
|
|
|
|
maxconn 2000
|
|
|
|
contimeout 5000
|
|
|
|
clitimeout 50000
|
|
|
|
srvtimeout 50000
|
|
|
|
|
2005-12-17 12:21:24 +00:00
|
|
|
reqidel ^Connection: # disable keep-alive
|
2005-12-17 12:14:35 +00:00
|
|
|
reqadd Connection:\ close
|
|
|
|
rspidel ^Connection:
|
|
|
|
rspadd Connection:\ close
|
2005-12-17 12:21:24 +00:00
|
|
|
rspidel ^Set-cookie:\ IP= # do not let this cookie tell our internal IP address
|
2005-12-17 12:14:35 +00:00
|
|
|
|
|
|
|
listen appli3-relais 0.0.0.0:10003
|
|
|
|
log global
|
|
|
|
mode http
|
|
|
|
option httplog
|
|
|
|
option dontlognull
|
|
|
|
dispatch 192.168.135.17:80
|
|
|
|
retries 3
|
|
|
|
redispatch
|
|
|
|
maxconn 2000
|
|
|
|
contimeout 5000
|
|
|
|
clitimeout 50000
|
|
|
|
srvtimeout 50000
|
|
|
|
|
2005-12-17 12:41:01 +00:00
|
|
|
listen appli4-backup 0.0.0.0:10004
|
|
|
|
log global
|
|
|
|
mode http
|
|
|
|
option httplog
|
|
|
|
option dontlognull
|
|
|
|
option httpchk
|
|
|
|
option persist
|
|
|
|
balance roundrobin
|
|
|
|
server inst1 192.168.114.56:80 check inter 2000 fall 3
|
|
|
|
server inst2 192.168.114.56:81 check inter 2000 fall 3 backup
|
|
|
|
retries 3
|
|
|
|
redispatch
|
|
|
|
maxconn 2000
|
|
|
|
contimeout 5000
|
|
|
|
clitimeout 50000
|
|
|
|
srvtimeout 50000
|
|
|
|
|
|
|
|
listen appli5-backup 0.0.0.0:10005
|
|
|
|
log global
|
|
|
|
mode http
|
|
|
|
option httplog
|
|
|
|
option dontlognull
|
|
|
|
option httpchk
|
|
|
|
balance roundrobin
|
|
|
|
cookie SERVERID insert indirect nocache
|
|
|
|
server inst1 192.168.114.56:80 cookie server01 check inter 2000 fall 3
|
|
|
|
server inst2 192.168.114.56:81 cookie server02 check inter 2000 fall 3
|
|
|
|
server inst3 192.168.114.57:80 backup check inter 2000 fall 3
|
|
|
|
capture cookie ASPSESSION len 32
|
|
|
|
retries 3
|
|
|
|
redispatch
|
|
|
|
maxconn 2000
|
|
|
|
contimeout 5000
|
|
|
|
clitimeout 50000
|
|
|
|
srvtimeout 50000
|
|
|
|
|
|
|
|
reqidel ^Connection: # disable keep-alive
|
|
|
|
reqadd Connection:\ close
|
|
|
|
rspidel ^Connection:
|
|
|
|
rspadd Connection:\ close
|
|
|
|
rspidel ^Set-cookie:\ IP= # do not let this cookie tell our internal IP address
|
|
|
|
|
|
|
|
errorloc 502 http://192.168.114.58/error502.html
|
|
|
|
|