HAProxy配置语法及实例(11)
时间:2025-04-05
时间:2025-04-05
热备代理语法
mode http
balance source
option httpchk GET /welcome.html HTTP/1.1\r\nHost: server denlai1 10.3.5.114:80 check inter 1500 rise 3 fall 3 server denlai2 10.4.6.104:80 check inter 1500 rise 3 fall 3 backend stats
mode http
balance source
option httpchk GET /welcome.html HTTP/1.1\r\n Host: server denlai1 10.5.5.114:80 check inter 1500 rise 3 fall 3 server denlai2 10.6.6.104:80 check inter 1500 rise 3 fall 3