Custom domain in Lightsail container service is not working

0

I have created a new lightsail container service. Pushed the image, and created a deployment.

It has given me a public domail url, this is working fine.

I am trying to assign a custom domain. For this, under the custom domains tab I have created a new certificate for API.MYDOMAINHERE.COM. It asked me to verify that I am the owner of the domain by entering the CNAME record name and value, which I have done in my godaddy.com account. After about 2 hours I can now see that the certificate validation completed and then I attached the certificate. The certificate status is showing as valid, in use.

At the top of the screen, below the public domain url, I can now see the custom domain url: API.MYDOMAINHERE.COM

However, when I open the url in browser it says that: This site can’t be reached

The public domain url that it provided by default (example....us-west-2.cs.amazonlightsail.com) works fine.

What could be the issue?

posta 2 anni fa1005 visualizzazioni
2 Risposte
0
Risposta accettata

I had not configured the CNAME pointing the public address to the custom domain. Once I configured that, it worked.

con risposta 2 anni fa
0

Please check your HTTPs vs HTTP. Check which port you are using. If you are using HTTPS you will need to have that certificate also uploaded into AWS ACM most likely.

Further reading if HTTPS custom domain: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-enabling-distribution-custom-domains

con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande