I have 2 websites hosted on AWS EC2. I created a single instance and hosted both sites there. I have deployed the SSL for one site by creating the ELB for that.
How can I deploy the SSL on the other site using ACM on the same instance?
2 Answers
You can use a single Application Load Balancer for both sites on the same server (or even multiple servers) by configuring your HTTPS listener rules to forward the traffic to specific target group according to the host name.
You won't need to install any SSL certificate on the server itself. The ELB communicates with the server over TCP/IP port 80. You'll need to add a HTTP-to-HTTPS redirect rules in your Web server of course if you don't want to allow insecure connections.
Comments
You can simply create a second ELB and assign your second wildcard certificate to it. You can also forward your traffic to the same backend server as the one where the first ELB is forwarding its traffic to.
In this scenario you can do the following:
- Create a new ELB
- Create appropriate listeners on your new ELB
- Point your second domain to your new ELB (using cname record)
- Register your existing instances with your new ELB
Hope this helps.
4 Comments
ELB for the site A (where SSL is deployed). Do I need to create another ELB for the same instance?Apache