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?

質問済み 2年前1005ビュー
2回答
0
承認された回答

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

回答済み 2年前
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

回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ