www domain not working

0

I've created a S3 Static website hosting - purchased a domain and configured it to point to my CloudFront distribution. My domain is working with HTTPS/HTTP .mySite.com. however it does not when using www - I get a "Can't find server" blank page.

My Configuration is below:

S3 bucket mySite

CloudFront Distributions Alternate domain names mySite.com www.mySite.com Custom SSL certificate mySite.com

ACM Certificate = Verified Status
Domain CNAME entries: mySite.com www.mySite.com

R53 Hosted Zone mySite.com A/AA Records: mySite.com www.mySite.com NS Record: mySite.com

Enter image description here

2 回答
0
已接受的回答

This was fixed with this solution. Removed the www A/AA records and created a CNAME record pointing to the mySite.com alias as shown.

https://repost.aws/questions/QUnUTa8LyeTEWakACXGB6glA/when-url-with-www-does-not-resolve

Enter image description here

BrianK
已回答 10 个月前
0

Both mySite.com and www.mySite.com need to be A (alias) records pointing to your CloudFront distribution in Route 53.

profile pictureAWS
专家
kentrad
已回答 10 个月前
profile picture
专家
已审核 10 个月前

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

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

回答问题的准则