在haproxy小结(二)配置文件篇 中对 haproxy.conf中所涉及的主要参数做一个解析。本篇列举一些现网中使用的真实示例。 一、http服务器配置示例 1#--------------------------------------------------------------------- 2# Global settings 3# code by www.361way.com 4#--------------------------------------------------------------------- 5global 6 # to have these messages end up in /var/log/haproxy.log you will 7 # need to: 8 # 9 # 1) configure syslog to accept network log events. This is done 10 # by adding the '-r' option to the SYSLOGD_OPTIONS in 11 # /etc/sysconfig/syslog 12 # 13 # 2) configure local2 events……
Continue reading