HAProxy Configuration Directives
The /etc/haproxy/haproxy.cfg
configuration
file is divided into the following sections:
-
global
-
Defines global settings, such as the
syslog
facility and level to use for logging, the maximum number of concurrent connections that are allowed, and how many processes to start in daemon mode. -
defaults
-
Defines the default settings for the other sections.
-
listen
-
Defines a complete proxy, which implicitly includes the
frontend
andbackend
components. -
frontend
-
Defines the ports that accept client connections.
-
backend
-
Defines the servers to which the proxy forwards client connections.