Skip to content

Instantly share code, notes, and snippets.

@lstoll
Created April 11, 2010 18:33
Show Gist options
  • Save lstoll/362959 to your computer and use it in GitHub Desktop.
Save lstoll/362959 to your computer and use it in GitHub Desktop.
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
#log loghost local0 info
maxconn 4096
#chroot /usr/share/haproxy
user haproxy
group haproxy
daemon
#debug
#quiet
defaults
log global
mode http
option httplog httpclose
option dontlognull
retries 3
option redispatch
maxconn 2000
contimeout 5000
clitimeout 50000
srvtimeout 50000
listen webfarm 127.0.0.1:8090
stats enable
mode http
balance roundrobin
cookie SERVERID insert indirect
option httpchk HEAD /index.html HTTP/1.0
server webA 127.0.0.1:80 cookie A check
listen stats :8091
mode http
stats uri /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment