Skip to content

Instantly share code, notes, and snippets.

@intinig
Created January 19, 2015 10:22
Show Gist options
  • Save intinig/626266b1c21438479541 to your computer and use it in GitHub Desktop.
Save intinig/626266b1c21438479541 to your computer and use it in GitHub Desktop.
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
chroot /var/lib/haproxy
user haproxy
group haproxy
defaults
log global
mode http
option httplog
option dontlognull
timeout connect 5000
timeout client 50000
timeout server 50000
errorfile 400 /etc/haproxy/errors/400.http
errorfile 403 /etc/haproxy/errors/403.http
errorfile 408 /etc/haproxy/errors/408.http
errorfile 500 /etc/haproxy/errors/500.http
errorfile 502 /etc/haproxy/errors/502.http
errorfile 503 /etc/haproxy/errors/503.http
errorfile 504 /etc/haproxy/errors/504.http
frontend main
bind /var/run/rgts.sock mode 777
default_backend rgts
listen stats
bind /var/run/rgts.sock mode 777
stats enable
stats uri /hstats
default_backend rgts
backend rgts :80
option httpchk GET /ping
errorloc 400 /400
errorloc 403 /403
errorloc 500 /500
errorloc 403 /503
server rgts0 unix@/var/run/app0.sock check
server rgts1 unix@/var/run/app1.sock check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment