Created
October 2, 2011 09:41
-
-
Save krams915/1257278 to your computer and use it in GitHub Desktop.
haproxy.cfg - Basic
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 | |
log 127.0.0.1 local1 notice | |
maxconn 4096 | |
daemon | |
defaults | |
log global | |
mode http | |
option httplog | |
option dontlognull | |
retries 3 | |
option redispatch | |
maxconn 2000 | |
contimeout 5000 | |
clitimeout 50000 | |
srvtimeout 50000 | |
frontend http-in | |
bind *:80 | |
default_backend servers | |
backend servers | |
option httpchk OPTIONS / | |
option forwardfor | |
stats enable | |
stats refresh 10s | |
stats hide-version | |
stats scope . | |
stats uri /admin?stats | |
stats realm Haproxy\ Statistics | |
stats auth admin:pass | |
cookie JSESSIONID prefix | |
server tomcat1 127.0.0.1:8080 cookie JSESSIONID_SERVER_1 check inter 5000 | |
server tomcat2 127.0.0.1:8180 cookie JSESSIONID_SERVER_2 check inter 5000 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment