Question lightsail + cloudfront + subdomains

0

Hello everybody!
First of all I apologize for my bad English.

I currently have a project in Hostinger, it is a website in php, mysql, html, css, etc.
I am looking to migrate to a VPS to be able to create the number of subdomains I need without having a limit like the one I currently have with Hostinger. For that, create an instance in AWS Lightsail and install a hosting panel "HestiaCP", I was able to create a public IP and point my domain to the AWS DNS to access my site.
The problem is that I want to enable Cloudfront, and when creating the certificate it does not allow me to enter wildcards so that all my subdomains can enter through cloudfront.

Is there a way for all requests to my main domain or any of my subdomains to go through Cloudfront and then go to Lightsail instance?

Thank you very much for your time.

EDIT: All subdomains must point to different folders, they behave like different websites.

Edited by: gabriel292 on May 27, 2021 5:10 PM

gefragt vor 3 Jahren303 Aufrufe
2 Antworten
0

Hello Gabriel,

Thanks for choosing Lightsail!

Sorry for not supporting wildcard in Lightsail Distribution Certificate. Currently, Lightsail Distribution Certificate supports up to 9 alternative domain names https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-create-a-distribution-certificate. (Alternative domain not supporting wildcard). Will take this feedback (Wildcard Supporting) to our PM.

Thanks,
Yiran

beantwortet vor 3 Jahren
0

Hello yiranaws!! That would be amazing! Thank you very much and hopefully they can enable wildcards for subdomains.
Greetings

beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen