HA Proxy Configure with multiple ports

Hi,

I am configuring HA Proxy for the setup, where HA proxy needs to check traffic on different ports on front end and route to back end on respective ports/ back end servers. while doing when the number of ports is increased more than one its failing.

Traffic from outside on ports like 443,2375,2376,2377 need to be routed to back end server on respective ports. Any help or link having the configuration to do this would help a lot.

Example: (worked)
global
log 127.0.0.1 local0
maxconn 4000
daemon
uid 99
gid 99

defaults
log global
timeout server 5s
timeout connect 5s
timeout client 5s

frontend https_frontend
bind *:443
mode tcp
default_backend web_server

backend web_server
mode tcp
balance roundrobin
stick-table type ip size 200k expire 30m
stick on src
server s1 xx.xxx.xx.xxx:443

<<<<<<Which is not working

global
log 127.0.0.1 local0
maxconn 4000
daemon
uid 99
gid 99

defaults
log global
timeout server 20s
timeout connect 20s
timeout client 20s

frontend https_frontend
bind *:443
mode tcp
default_backend web_server

frontend mgr_frontend
bind *:2376
mode tcp
default_backend mgr_server

backend web_server
mode tcp
balance roundrobin
stick-table type ip size 200k expire 30m
stick on src
server s1 xx.xxx.xx.xxx:443

backend mgr_server
mode tcp
balance roundrobin
stick-table type ip size 200k expire 30m
stick on src
server m1 xx.xxx.xx.xxx:2376

Hi.
Just add more bind lines at the same frontend. Like this:
bind *:443
bind *:2375
bind *:2376
bind *:2377

Each bind line just adding a new binding (it’s not replacing the existing one and this is not an error).
Best Regards.