diff --git a/haproxy.cfg b/haproxy.cfg index d099eca..324ad5e 100644 --- a/haproxy.cfg +++ b/haproxy.cfg @@ -12,18 +12,18 @@ global # to have these messages end up in /var/log/haproxy.log you will # need to: - # + # # 1) configure syslog to accept network log events. This is done - # by adding the '-r' option to the SYSLOGD_OPTIONS in + # by adding the '-r' option to the SYSLOGD_OPTIONS in # /etc/sysconfig/syslog - # + # # 2) configure local2 events to go to the /var/log/haproxy.log - # file. A line like the following can be added to + # file. A line like the following can be added to # /etc/sysconfig/syslog - # + # # local2.* /var/log/haproxy.log - # - log 127.0.0.1 local2 + # + log 127.0.0.1 local2 chroot /var/lib/haproxy pidfile /var/run/haproxy.pid @@ -36,7 +36,7 @@ global stats socket /var/lib/haproxy/stats #--------------------------------------------------------------------- -# common defaults that all the 'listen' and 'backend' sections will +# common defaults that all the 'listen' and 'backend' sections will # use if not designated in their block #--------------------------------------------------------------------- defaults @@ -63,10 +63,10 @@ defaults frontend main *:5000 acl url_static path_beg -i /static /images /javascript /stylesheets acl url_static path_end -i .jpg .gif .png .css .js - + use_backend static if url_static default_backend app - + #--------------------------------------------------------------------- # static backend for serving up images, stylesheets and such #--------------------------------------------------------------------- @@ -81,6 +81,6 @@ backend app balance roundrobin server app1 127.0.0.1:5001 check server app2 127.0.0.1:5002 check - server app3 127.0.0.1:5003 check + server app3 127.0.0.1:5003 check server app4 127.0.0.1:5004 check