Core concepts

Global

The global section appears at the top of your configuration file. It defines process-level directives such as the maximum number of connections to accept, where to store logs, and which user and group the process should run under. The example below shows just some of the available options:

haproxy
global
maxconn 60000
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
user haproxy
group haproxy
chroot /var/empty
haproxy
global
maxconn 60000
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
user haproxy
group haproxy
chroot /var/empty

If this page was useful, please, Leave the feedback.

© 2023 HAProxy Technologies, LLC. All Rights Reserved
Manage Cookie Preferences