Skip to content

Instantly share code, notes, and snippets.

@big-samantha
Created January 11, 2013 19:11
Show Gist options
  • Select an option

  • Save big-samantha/4513138 to your computer and use it in GitHub Desktop.

Select an option

Save big-samantha/4513138 to your computer and use it in GitHub Desktop.
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
maxconn 16384
user haproxy
group haproxy
daemon
defaults
log global
mode http
option httplog
option dontlognull
retries 3
option redispatch
contimeout 50000
clitimeout 50000
srvtimeout 50000
balance roundrobin
option httpclose
option forwardfor
stats enable
stats auth enter:Allyson1
frontend enter-internal-front
bind :80
# default enter-cluster backend
# the ip addresses need to be changed to variables later
backend enter-internal-all
option httpchk GET /foo.jpg HTTP/1.1\r\nHost:\ zachary.stag.enternewmedia.com
server s-app1 10.177.11.5:80 check inter 1m
server s-app2 10.177.10.153:80 check inter 1m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment