Domain not working without "WWW"

1

Trying to host my static website but the site only loads without "www". Any reason why? I have A type for *.domain.com pointing to cloudfront

已提問 2 年前檢視次數 1933 次
3 個答案
1

Have you added www.domain.com to the list of Alternate domains in CloudFront? Your DNS record for www.domain.com should be a CNAME pointing to the Cloudfront DNS name (dxxxxxxxxx.cloudfront.net)

You can use a wildcard eg. *.domain.com as the alternate domain name, but you must make sure that the SSL certificate configured in your CloudFront distribution is also valid for *.domain.com - see documentation here: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html#alternate-domain-names-wildcard

AWS
專家
Paul_L
已回答 2 年前
0

Could you show your HostedZone configuration?

You can check 3 places

  • Route 53 HostedZone
  • CloudTrail Alias
  • Certificate Manager

and verify if there is everything ok and proper domains/subdomains are configured.

profile picture
MG
已回答 2 年前
0
  1. Please check if you have added your "www" domain in the list of Alternate domains in CloudFront configuration as Paul mentioned.
  2. And make sure the ACM SSL certificate you have configured in CloudFront should be valid for both www and root domain. If not create a new one with both domains and reconfigure the CloudFront.
Mounick
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南