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 global
, defaults
, frontend
, 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.