# this config needs haproxy-1.1.28 or haproxy-1.2.1 global log 127.0.0.1 local1 debug #log loghost local0 info maxconn 8096 user haproxy group haproxy daemon #debug #quiet defaults log global mode http option httplog option dontlognull option httpclose retries 3 option redispatch maxconn 4000 contimeout 5000 clitimeout 50000 srvtimeout 50000 listen stats 0.0.0.0:8080 mode http log global maxconn 10 clitimeout 10s srvtimeout 10s contimeout 10s timeout queue 10s stats enable stats refresh 30s stats show-node stats uri / listen example.example.com 0.0.0.0:8443 option httpchk HEAD /healthcheck_individual.jsp HTTP/1.0 option forwardfor except 127.0.0.1 appsession JSESSIONID len 52 timeout 300000 balance roundrobin server vpc-app2 192.168.3.59:8443 check inter 1000 fall 3 server vpc-app3 192.168.5.194:8443 check inter 1000 fall 3 srvtimeout 5m errorfile 503 /etc/haproxy/errors/503.http