Skip to content

Instantly share code, notes, and snippets.

@golonzovsky
Created July 21, 2016 15:49
Show Gist options
  • Save golonzovsky/ae81fe596eab59175555d3250427e3ca to your computer and use it in GitHub Desktop.
Save golonzovsky/ae81fe596eab59175555d3250427e3ca to your computer and use it in GitHub Desktop.
global
log 127.0.0.1 local2
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 4000
user haproxy
group haproxy
daemon
defaults
mode http
log global
option httplog
option dontlognull
option http-server-close
option forwardfor except 127.0.0.0/8
option redispatch
retries 3
timeout http-request 10s
timeout queue 1m
timeout connect 10s
timeout client 1m
timeout server 1m
timeout http-keep-alive 10s
timeout check 10s
maxconn 3000
frontend main *:7777
acl url_develop path_beg /develop
acl url_master path_beg /master
use_backend develop if url_develop
use_backend master if url_master
default_backend develop
backend develop
balance roundrobin
server static vdev09.int.com:8080/develop check
backend master
balance roundrobin
server master vdev09.int.com:8080/master check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment