Skip to content

Instantly share code, notes, and snippets.

@rcarmonad
Created February 18, 2016 13:33
Show Gist options
  • Save rcarmonad/931cbb357f876218629a to your computer and use it in GitHub Desktop.
Save rcarmonad/931cbb357f876218629a to your computer and use it in GitHub Desktop.
Configuracion HAProxy
global
log 127.0.0.1 local0 notice
maxconn 2000
user haproxy
group haproxy
defaults
log global
mode http
option httplog
option dontlognull
retries 3
option redispatch
timeout connect 5000
timeout client 10000
timeout server 10000
listen mservice 10.211.55.10:80
mode http
stats enable
stats uri /haproxy?stats
stats auth rodrigo:completo
balance roundrobin
cookie JSESSIONID prefix
appsession JSESSIONID len 52 timeout 3h request-learn prefix
option httpclose
option forwardfor
server server1 10.211.55.10:7001 cookie A check
server server2 10.211.55.10:7002 cookie B check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment