== HAproxy on debian > aptitude install haproxy > cp /etc/haproxy/haproxy.cfg /etc/haproxy/haproxy.cfg.org > vi /etc/haproxy/haproxy.cfg global log 127.0.0.1 local0 log 127.0.0.1 local1 notice #log loghost local0 info maxconn 4096 #chroot /usr/share/haproxy user haproxy group haproxy daemon #debug #quiet defaults log global mode http option httplog option dontlognull retries 3 option redispatch maxconn 2000 contimeout 5000 clitimeout 50000 srvtimeout 50000 # enable web-stats at /haproxy?stats stats enable listen webfarm 192.168.0.2:80 cookie SERVERID rewrite balance roundrobin # mode http # stats enable # stats auth someuser:somepassword # balance roundrobin # cookie JSESSIONID prefix option httpclose # option forwardfor # option httpchk HEAD /check.txt HTTP/1.0 server webA 192.168.0.10:80 cookie A check inter 2000 rise 2 fall 5 server webB 192.168.0.11.82:80 cookie B check inter 2000 rise 2 fall 5 # server webA 192.168.0.10:80 cookie A # server webB 192.168.0.11.82:80 cookie B > vi /etc/default/haproxy # Set ENABLED to 1 if you want the init script to start haproxy. ENABLED=1 # Add extra flags here. #EXTRAOPTS="-de -m 16" /etc/init.d/haproxy start ## Status check http://192.168.0.2/haproxy?stats