Configuration basics
Global
On this page
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
globalmaxconn 60000log 127.0.0.1 local0log 127.0.0.1 local1 noticeuser haproxygroup haproxychroot /var/empty
haproxy
globalmaxconn 60000log 127.0.0.1 local0log 127.0.0.1 local1 noticeuser haproxygroup haproxychroot /var/empty
See also Jump to heading
- For complete information about global directives, see List of Global directives.
- For complete syntax and options for the
log
directive, see log. - To change the user ID of the HAProxy process, see user.
- To change the group ID of the HAProxy process, see group.
- To change the HAProxy root directory, see chroot.
Do you have any suggestions on how we can improve the content of this page?