HAProxy Configuration: Difference between revisions
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
=Configure HAProxy to Log into a File= | =Configure HAProxy to Log into a File= | ||
Last time I tried this, it did not work: | |||
<font color=red> | |||
Configure syslog to accept network log events. Add the '-r' option to the SYSLOGD_OPTIONS in /etc/sysconfig/rsyslog: | Configure syslog to accept network log events. Add the '-r' option to the SYSLOGD_OPTIONS in /etc/sysconfig/rsyslog: | ||
Line 16: | Line 20: | ||
local2.* /var/log/haproxy.log | local2.* /var/log/haproxy.log | ||
</font> | |||
=SSL Configuration= | =SSL Configuration= |
Revision as of 03:14, 4 July 2017
Internal
Overview
If installed with yum, the default configuration file is deployed in /etc/haproxy/haproxy.cfg and the systemd configuration file in /etc/sysconfig/haproxy.
Configure HAProxy to Log into a File
Last time I tried this, it did not work:
Configure syslog to accept network log events. Add the '-r' option to the SYSLOGD_OPTIONS in /etc/sysconfig/rsyslog:
SYSLOGD_OPTIONS="-r"
Configure local2 events to go to the /var/log/haproxy.log file. Add the following line in /etc/rsyslog.conf:
local2.* /var/log/haproxy.log
SSL Configuration
Configuration
Options
httplog
tcplog
Logging is set to tcp instead of the default http.
ssl-hello-chk
A health check that verifies the the connection and its ability to handle SSL (SSLv3 specifically) connections.
global
defaults
mode
Possible values:
http
tcp
Used to pass secure connections off to a backend server without encrypting it.