You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
##
|
|
|
|
## haproxy.cfg -- HAProxy server configuration
|
|
|
|
##
|
|
|
|
|
|
|
|
global
|
|
|
|
daemon
|
|
|
|
log 127.0.0.1 local0 notice
|
|
|
|
user @l_nusr@
|
|
|
|
group @l_ngrp@
|
|
|
|
maxconn 4096
|
|
|
|
|
|
|
|
defaults
|
|
|
|
log global
|
|
|
|
mode http
|
|
|
|
option httplog
|
|
|
|
option dontlognull
|
|
|
|
retries 3
|
|
|
|
redispatch
|
|
|
|
maxconn 2000
|
|
|
|
timeout connect 5s
|
|
|
|
timeout client 60s
|
|
|
|
timeout server 60s
|
|
|
|
|
|
|
|
listen stats 127.0.0.1:6644
|
|
|
|
mode http
|
|
|
|
maxconn 10
|
|
|
|
no log
|
|
|
|
acl network_allowed src 127.0.0.0/8
|
|
|
|
tcp-request connection reject if !network_allowed
|
|
|
|
stats enable
|
|
|
|
stats uri /
|
|
|
|
|
|
|
|
listen example-http-proxy 127.0.0.1:8080
|
|
|
|
balance roundrobin
|
|
|
|
option httpchk OPTIONS * HTTP/1.1\r\nHost:\ www
|
|
|
|
server server1 127.0.0.1:8081 cookie server1 check inter 2000 rise 2 fall 5
|
|
|
|
server server2 127.0.0.1:8082 cookie server2 check inter 2000 rise 2 fall 5
|
|
|
|
timeout server 20s
|
|
|
|
cookie SERVERID insert indirect nocache
|
|
|
|
reqidel ^Server:.*
|
|
|
|
rspidel ^Set-cookie:\ IP=
|
|
|
|
|
|
|
|
listen example-https-proxy 127.0.0.1:8443
|
|
|
|
balance source
|
|
|
|
option ssl-hello-chk
|
|
|
|
server server1 127.0.0.1:8444 check inter 2000 rise 2 fall 5
|
|
|
|
server server2 127.0.0.1:8445 check inter 2000 rise 2 fall 5
|
|
|
|
timeout server 20s
|
|
|
|
|