如何为多个端口配置haproxy

How to haproxy configure for multiple port

http://example.com ------ > X.X.X.X:80 http://example.com:8080 --------> X.X.X.X:8080

如何在 haproxy 上配置它?

寻找

bind

在前端配置中 (https://www.haproxy.com/blog/the-four-essential-sections-of-an-haproxy-configuration/)。