Global
Log 127.0.0.1 Local0
Maxconn 32768
Chroot/data/apps/haproxy/var/chroot
User Haproxy
Group Haproxy
Daemon
Nbproc 1
Pidfile/data/apps/haproxy/haproxy.pid
Spread-checks 4
Defaults
Log Global
Mode http
Retries 3
Option Redispatch
Contimeout 5000
Clitimeout 50000
Srvtimeout 50000
Frontend webtest
Bind *:90
ACL Agent Hdr_sub (user-agent)-I MSIE 8.0
Use_backend Agent_server If Agent
ACL 91CPM Hdr_beg (host)-I www.91cpm.com
Use_backend Www.91cpm_server If 91CPM
Backend Www.91cpm_server
Stats enable
Stats Hide-version
Stats Uri/admin?status
Stats Auth Admin:admin
Mode http
Balance Roundrobin
Cookie Jsessionid Prefix
Option Forwardfor
Cookie ServerID Insert Indirect
Option Httpchk GET/
Server web01 10.2.30.79:80 Cookie maxconn 2048 weight 8 Check port Inter 5000
Fall 1
Backend Agent_server
Stats enable
Stats Hide-version
Stats Uri/admin?status
Stats Auth Admin:admin
Mode http
Balance Roundrobin
Cookie Jsessionid Prefix
Option Forwardfor
Cookie ServerID Insert Indirect
Option Httpchk GET/
Server web01 10.2.30.80:80 Cookie maxconn 2048 weight 8 Check port Inter 5000
Fall 1
Haproxy file example of ACL based on user Client