Skip to content

Instantly share code, notes, and snippets.

@yuriploc
Created May 20, 2016 15:52
Show Gist options
  • Save yuriploc/e42fee27dc6e895a657157c29fb29af9 to your computer and use it in GitHub Desktop.
Save yuriploc/e42fee27dc6e895a657157c29fb29af9 to your computer and use it in GitHub Desktop.
defaults
log global
maxconn 4096
mode http
option httplog
option dontlognull
option forwardfor
option http-server-close
timeout connect 5000
timeout client 50000
timeout server 50000
stats enable
stats auth yourusername:yourpassword
stats uri /yourhaproxy?status
daemon
frontend http-in
bind :80
default_backend web-app
backend web-app
balance leastconn
option httpclose
cookie YOURSESSIONID prefix
server node1 127.0.0.1:8080 cookie A check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment