I am creating a static website with AWS S3, CloudFront, Route 53, and AWS Certificate Manger. The www subdomain of my website (https://www.lnkrecall.org/) works fine, but the apex domain does not:
403 ERROR The request could not be satisfied.
and does not redirect to HTTPS as it should.This site can’t provide a secure connection
in Google ChromeConfiguration details:
lnkrecall.org
and *.lnkrecall.org
lnkrecall.org
and www.lnkrecall.org
that both point to the same ...cloudfront.net.
distributionRedirect HTTP to HTTPS
Evidently the apex domain is somehow configured differently from the subdomain, but I can't spot it
Based on the comments.
The issue was that apex domain was not added to CF distribution as an alternative name.
The solution was to add the domain to CF distribution.