我的haproxy組態檔如下,但是發現網站跳轉的時候,有時候能成功,有時候打不開頁面,有時候頁面只顯示部分,頁面內的圖片之類的全都顯示不出來,幫我看看我的組態檔是否寫錯了
global
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
user haproxy
group haproxy
daemon
maxconn 4000
log 127.0.0.1 local3 info
defaults
#mode http
log global
#option httplog
option dontlognull
retries 3
timeout http-request 5s
timeout queue 1m
timeout connect 5s
timeout client 1m
timeout server 1m
timeout http-keep-alive 5s
timeout check 5s
maxconn 3000
listen port_80
bind *:80
mode http
option httplog
use-server svr1 if { hdr_dom(host) -i svr1.domain.com }
server svr1 192.168.0.17:80 check
use-server svr2 if { hdr_dom(host) -i svr2.domain.com }
server svr2 192.168.0.18:80 check
use-server svr3 if { hdr_dom(host) -i svr3.domain.com }
server svr3 192.168.0.19:10086 check
use-server svr4 if { hdr_dom(host) -i svr4.domain.com }
server svr4 192.168.0.20:80 check
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/242559.html
標籤:網絡維護與管理
上一篇:注塑機行業聯網的現狀
下一篇:eNSP的介面號如何更改?
