2.1. Configuration file format



HAProxy’s configuration process involves 3 major sources of parameters :

  • the arguments from the command-line, which always take precedence
  • the “global” section, which sets process-wide parameters
  • the proxies sections which can take form of “defaults”, “listen”, “frontend” and “backend”

The configuration file syntax consists in lines beginning with a keyword referenced in this manual, optionally followed by one or several parameters delimited by spaces.

If spaces have to be entered in strings, then they must be preceded by a backslash (‘\’) to be escaped. Backslashes also have to be escaped by doubling them.

Share Button

Leave a Reply