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?
Asked
Active
Viewed 61 times
1

baig772
- 3,404
- 11
- 48
- 93
2 Answers
1
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.

Khalid T.
- 10,039
- 5
- 45
- 53
0
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.

Kush Vyas
- 5,813
- 2
- 26
- 36
-
I have both sites on same instance and I have already created an `ELB` for the site A (where SSL is deployed). Do I need to create another `ELB` for the same instance? – baig772 Nov 20 '17 at 11:03
-
Yes that is not the issue hope you have mapped nginx or apache appropriately ? If it is nginx use https://garthkerr.com/multiple-ssl-domains-on-elb-with-nginx/ – Kush Vyas Nov 20 '17 at 11:05
-
Yes I have created the vhosts properly. I am using `Apache` – baig772 Nov 20 '17 at 11:06
-
Also Update the answer , Refer https://web.archive.org/web/20130914191613/http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/ – Kush Vyas Nov 20 '17 at 11:08