Search code examples
amazon-web-servicesamazon-s3amazon-cloudfront

AWS Static Web Site with SSL not routing properly


I've completed the instructions located here: https://dcurt.is/how-to-host-a-static-website-on-aws-with-https

This is to setup s3 buckets for the hosting of a web site, ACM for getting an SSL cert, CloudFront to attached to the ACM and buckets, and Route 53 to the CloudFront instances.

When I go to my domain to view my website, it says "Server Not Found" and I see it is being directed to a URL in the wrong form: https://http//mydomain.com.s3-website-us-east-1.amazonaws.com/

Any ideas?


Solution

  • I think you need to check the CNAME value of your domain A record and change it from http//mydomain.com.s3-website-us-east-1.amazonaws.com to mydomain.com.s3-website-us-east-1.amazonaws.com