I have springboot application with different ports hosted in ec2 instance Domain in Route 53
Domain Name : mydomain.com
App A - 8081, App B - 8085, App c - 8088
Instance IP : 10.xx.xx.xx
domain : test1.mydomain.com point to 10.xx.xx.xx:8081/landingpage &
test2.mydomain.com point to 10.xx.xx.xx:8085/landingpage & test3.mydomain.com point to 10.xx.xx.xx:8088/landingpage
I have some idea in creating Load Balancer and Target Groups in beginner level. Your views are always welcome.
As stated by Marcin, Route53 can't resolve port, this is a workaround. Assuming you already open two ports on your EC2 instance:
*.example.com
, register the certificate to your HTTPS load balancer.