Last active
February 10, 2016 04:35
-
-
Save initcron/874a1bda587e8a219210 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global | |
log 127.0.0.1 local2 | |
chroot /var/lib/haproxy | |
pidfile /var/run/haproxy.pid | |
maxconn 4000 | |
user haproxy | |
group haproxy | |
daemon | |
stats socket /var/lib/haproxy/stats | |
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 *:5000 | |
acl url_static path_beg -i /static /images /javascript /stylesheets | |
acl url_static path_end -i .jpg .gif .png .css .js | |
default_backend app | |
backend app | |
balance roundrobin | |
#server app1 192.168.33.10:80 check | |
server app1 127.0.0.1:80 check | |
#server app1 127.0.0.1:81 check |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment