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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容