Reputation: 302
I am getting stuck while trying to secure my S3 hosted website. The steps I have followed are:
However, I cannot access my website, either HTTPS or just HTTP. But I can access the website through the CloudFront Domain name just fine. Just not when I tried to access it through my custom domain name. (example.com
)
Upvotes: 6
Views: 2145
Reputation: 3251
You need to follow some steps to access your cloudfront distribution through a custom domain. Please check these 3 steps:
1 - Have you added a CNAME entry in cloudfront distribution as shown by the image below?
2 - All that you need in ROUTE53 is create an ALIAS entry pointing to your cloudfront distribution. Have you added this? If your settings are right, Route53 will give you the option of your distribution which matches with your domain. (Make Sure that you have set CNAME entry). Please refer to the image below:
3 - For last, please make sure that your SSL match with your domain.
I believe that you probably missing CNAME entry as described by step 1.
Upvotes: 7