Created
March 12, 2017 08:54
-
-
Save congto/5a51233a8c382c54795f7a7a56c62af0 to your computer and use it in GitHub Desktop.
haproxy.conf 1.6 for ubuntu 14.04
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
root@u14-ctl1:~# cat /etc/haproxy/haproxy.cfg | |
global | |
log 127.0.0.1 syslog | |
maxconn 1000 | |
user haproxy | |
group haproxy | |
daemon | |
defaults | |
log global | |
mode http | |
option httplog | |
option dontlognull | |
option http-server-close | |
option forwardfor except 127.0.0.0/8 | |
option redispatch | |
option contstats | |
retries 3 | |
timeout http-request 10s | |
timeout queue 1m | |
timeout connect 10s | |
timeout client 1m | |
timeout server 1m | |
timeout check 10s | |
listen http_proxy | |
bind 192.168.11.70:80 | |
balance roundrobin | |
server u14-ctl1 172.16.69.71:80 maxconn 100 check inter 2000 rise 2 fall 5 | |
server u14-ctl2 172.16.69.72:80 maxconn 100 check inter 2000 rise 2 fall 5 | |
server u14-ctl3 172.16.69.73:80 maxconn 100 check inter 2000 rise 2 fall 5 | |
listen stats | |
bind 192.168.11.70:8080 | |
mode http | |
stats enable | |
stats uri /stats | |
stats realm HAProxy\ Statistics | |
stats auth admin:abc123 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment