Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Check if configuration file is valid

Code Block
docker exec -it <CONTAINER_ID> haproxy -c -f /config/haproxy.cfg


HAProxy Config

There are four essential sections to an HAProxy configuration file. They are globaldefaultsfrontend, and backend. These four sections define how the server as a whole performs, what your default settings are, and how client requests are received and routed to your backend servers.