Skip to content

Instantly share code, notes, and snippets.

@yuuichi-fujioka
Created June 24, 2015 05:03
Show Gist options
  • Save yuuichi-fujioka/d5bba09fbe221c83c009 to your computer and use it in GitHub Desktop.
Save yuuichi-fujioka/d5bba09fbe221c83c009 to your computer and use it in GitHub Desktop.
simple haproxy.cfg
global
daemon
maxconn 256
defaults
mode http
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
frontend http-in
bind *:80
default_backend webserver
backend webserver
balance roundrobin
server web001 192.168.0.10:80 check
server web002 192.168.0.11:80 check
server web003 192.168.0.12:80 check
listen admin
bind *:8080
stats enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment