I am a beginner in HAProxy and I am experienting with it now. I use AWS to run a web application, which supports custom domains and subdomains. I am using AWS certificate manager to generate and manage certificates.
Well, say my application is available under
https://myapplication.com , I can use my certificate manager to generate certificate for my domain. Also I can very well support subdomains like
https://customer2.myapplication.com etc by using a wildcard certificate like
This gets stuck when I try to support custom domains, like if I need to support
https://myapplication.custom.com . What I does is, I will configure DNS and attach the certificate to my Application Load Balancer and DNS (Route 53). But ALB has a limit of 25 certificates per node. Some workaround to support more than 25 certificates is to bring up multiple ALB and introduce a Network Load Balancer as shown in the diagram below;
If I proceed with solutions like this, I will end up with bringing up one load balancer for every 25 domains I need to cater - 4 for 100 and 40 for 1000 - , and I don’t trust it as a feasible solution at all.
I was reading all the blogs and documentation available online and I would like to see Is it possible to use HAProxy with Application Load Balancer and Route 53 to enable more than 25 certificates in AWS? If possible, somebody please tell me how to achieve this?
I am adding links below for reference.
Thanks in advance .