mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-11 22:15:14 +00:00
750a47265a
* fixed stats monitoring, and optimized some tv_* for most common cases. * replaced temporary 'newhdr' with 'trash' to reduce stack size * made HTTP errors more HTML-fiendly. * renamed strlcpy() to strlcpy2() because of a slightly difference between their behaviour (return value), to avoid confusion. * restricted HTTP messages to HTTP proxies only * added a 502 message when the connection has been refused by the server, to prevent clients from believing this is a zero-byte HTTP 0.9 reply. * changed 'Cache-control:' from 'no-cache="set-cookie"' to 'private' when inserting a cookie, because some caches (apache) don't understand it. * fixed processing of server headers when client is in SHUTR state * automatically close fd's 0,1 and 2 when going daemon ; setpgrp() after setpgid() * updated the Makefile and the Formilux build script
64 lines
1.4 KiB
INI
64 lines
1.4 KiB
INI
global
|
|
log 127.0.0.1 local0
|
|
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
|
|
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
|
|
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
|
|
|
|
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
|
|
|