Home > other >  Haproxy configuration problem
Haproxy configuration problem

Time:12-31

My haproxy configuration files as follows, but found that site jump, sometimes successfully, sometimes can't open the page, sometimes pages show only the part, all the images such as the page to show not to come out, help me to see if my profile write wrong
 
Global
Chroot/var/lib/haproxy
Pidfile/var/run/haproxy pid
The user haproxy
Group haproxy
The daemon
Maxconn 4000
The log 127.0.0.1 local3 info

Defaults
# mode HTTP
The log global
# option httplog
Option dontlognull
Retries 3
The timeout HTTP - request 5 s
The timeout queue 1 m
The timeout connect 5 s
The timeout client 1 m
The timeout server 1 m
Timeout HTTP -- keep alive 5 s
The timeout check 5 s
Maxconn 3000

Listen port_80
The bind * : 80
Mode HTTP
Option httplog
Use the -server svr1 if {hdr_dom (host) - I svr1.domain.com}
Check server svr1 192.168.0.17-80
Use the -server svr2 if {hdr_dom (host) - I svr2.domain.com}
Check server svr2 192.168.0.18-80
Use the -server svr3 if {hdr_dom (host) - I svr3.domain.com}
Check server svr3 192.168.0.19-10086
Use the -server an svr4 if {hdr_dom (host) - I svr4.domain.com}
80 check server an svr4 192.168.0.20:

  • Related