Skip to content

Instantly share code, notes, and snippets.

@sinansh
Created March 26, 2018 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sinansh/965d88f350f628541821a41288736088 to your computer and use it in GitHub Desktop.
Save sinansh/965d88f350f628541821a41288736088 to your computer and use it in GitHub Desktop.
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
maxconn 4096
user haproxy
group haproxy
daemon
defaults
log global
mode http
option httplog
option dontlognull
option forwardfor
option http-server-close
stats enable
stats auth someuser:somepassword
stats uri /haproxyStats
frontend http-in
bind :80
default_backend web-app-cluster
backend web-app-cluster
balance rountrobin
option httpclose
server node1 10.10.1.27 cookie A check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment