Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hosting Multiple Domains with SSL on AWS Lightsail

Trying to host multiple applications on AWS Lightsail with https being allowable on all of them, but running into a problem. It appears as though the Lightsail load balancers only allow a single certificate to be active at one time. These sites are low-traffic so I would like to only have a single load balancer or ec2 instance for multiple domains that can support https on all of them. Does AWS provide a way to do this that integrates with Lighsail or what is the recommended approach?

like image 874
SuperVeetz Avatar asked May 22 '18 06:05

SuperVeetz


People also ask

Does Lightsail have SSL?

Amazon Lightsail uses SSL/TLS certificates to handle encrypted web traffic (HTTPS requests). You can create certificates, verify domain ownership, and then attach the validated certificates to a Lightsail load balancer or distribution.

Is Lightsail good for Web Hosting?

AWS has a hosting solution for every need, and Amazon Lightsail is a cost effective, reliable, and fast VPS service that makes deploying web applications effortless.


1 Answers

You are correct that LightSail balancers only support 1 certificate, but that single certificate can support up to 10 domain names.

One of the domains is the "main" one and the other (up to) 9 are "alternate" domains and subdomains, but operationally it doesn't make any difference which one is the "main" one and which ones are alternates.

https://lightsail.aws.amazon.com/ls/docs/en/articles/add-alternate-domain-names-to-tls-ssl-certificate-https

Certificates are not editable, so if you already created one, you'll need to create a new one with all the domains, and attach it to the balancer.

like image 92
Michael - sqlbot Avatar answered Oct 13 '22 00:10

Michael - sqlbot