example haproxy.cfg

# /etc/haproxy.cfg - example
global
 # man (3) ulimit
 maxconn 4096
 daemon
 # cpu cores- e.g., 2.
 nbproc 2
 defaults
 mode http
 clitimeout 60000
 srvtimeout 30000
 contimeout 4000
 # no keepalive
 option httpclose
 listen http_proxy 55.55.55.55:80
 # or leastconn, source, uri, etc.
 balance roundrobin
 option httpchk
 # set x-forwarded-for header
 option forwardfor
 # balanced servers
 server web1 66.66.66.66:80 weight 1 maxconn 1024 check
 server web2 77.77.77.77:80 weight 1 maxconn 1024 check
 server web3 88.88.88.88:80 weight 1 maxconn 1024 check