Created
June 27, 2015 18:30
-
-
Save serainville/c7053790028da32b43fe to your computer and use it in GitHub Desktop.
This file contains 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 local0 notice | |
maxconn 2000 | |
user haproxy | |
group haproxy | |
defaults | |
log global | |
mode http | |
option httplog | |
option dontlognull | |
retries 3 | |
option redispatch | |
timeout connect 5000 | |
timeout client 10000 | |
timeout server 10000 | |
listen myapp 0.0.0.0:80 | |
mode http | |
stats enable | |
stats uri /haproxy?stats | |
stats realm Strictly\ Private | |
stats auth A_Username:YourPassword | |
stats auth Another_User:passwd | |
balance roundrobin | |
option httpclose | |
option forwardfor | |
server web-node-01 192.168.1.101:80 check | |
server web-node-02 192.168.1.100:80 check |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment