Configuration basics
Listens
A listen section serves as both a frontend, which listens to incoming traffic, and a backend, which specifies the web servers to which the load balancer sends the traffic.
Info
This combined role can be a simple choice for some applications, but for more complex applications, a listen section isn’t ideal. In applications composed of multiple web domains and multiple pools of web servers, combining both functions can result in an unnecessarily complicated configuration. In these cases, we recommend that you define frontend and backend sections instead of listen sections.
The following example listen section is typical because it is used for a simple TCP application. This defines the pool of upstream load balancers for a two-tier active-active high availability configuration.
haproxy
haproxy
See also Jump to heading
Do you have any suggestions on how we can improve the content of this page?