1 #---------------------------------------------------------------------
2 # Example configuration. See the full configuration manual online.
4 # http://www.haproxy.org/download/2.5/doc/configuration.txt
6 #---------------------------------------------------------------------
12 chroot /usr/share/haproxy
13 pidfile /run/haproxy.pid
22 option forwardfor except 127.0.0.0/8
26 acl url_static path_beg -i /static /images /javascript /stylesheets
27 acl url_static path_end -i .jpg .gif .png .css .js
29 use_backend static if url_static
37 server static 127.0.0.1:4331 check
45 server app1 127.0.0.1:5001 check
46 server app2 127.0.0.1:5002 check
47 server app3 127.0.0.1:5003 check
48 server app4 127.0.0.1:5004 check