global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
maxconn 50000
user haproxy
group haproxy
daemon
nbproc 1
pidfile /var/run/haproxy.pid
tune.ssl.default-dh-param 1024
defaults
log global
mode http
option httplog
option dontlognull
timeout server 30s
timeout connect 30s
timeout client 30s
retries 2
frontend internet
bind *:80
mode http
default_backend elb
backend elb
mode http
server elb1 www.aaa.com.tw
server elb2 www.bbb.com.tw
listen stats :8080
mode http
stats enable
stats hide-version
stats realm Haproxy\ Statistics
stats uri /
stats auth admin:admin
stats refresh 10s
歡迎光臨 ADJ網路實驗室 (http://dz.adj.idv.tw/) | Powered by Discuz! 6.0.0 |