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
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

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?