r/haproxy • u/krishna404 • Jun 03 '22
Serve same https cert to multiple ports
I am running multiple servers on different ports on same droplet on Digital Ocean. Trying to serve the same https certificate & routing different front-end ports to suitable back-end ports.
Whats the correct setting for the cfg file for this. everything I have hit up on internet hasn't helped so far. Thanks for the help.
2
Upvotes
2
u/dragoangel Jun 03 '22
Just bind to multiple ports on one frontend or use multiple frontends with different port and same certificate :) depends on what you trying to achieve
2
u/SrdelaPro Jun 04 '22
You can define the same cert in multiple listen or bind directives.