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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠