Wallen
Wallen

Reputation: 302

Problem associating CloudFront distribution with Route 53 domain

I am getting stuck while trying to secure my S3 hosted website. The steps I have followed are:

  1. I have created a custom domain with Route 53, hosted on S3.
  2. Created an SSL certificate.
  3. Created a CloudFront distribution and and set it to use my ssl certificate, and given my custom domain as the CloudFront "alternate domain name"
  4. Created a public hosted zone for my domain.
  5. Created "A" and "AAAA" records to link my domain to my CloudFront distribution.

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

Answers (1)

Lucas Santos
Lucas Santos

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?

enter image description here

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:

enter image description here

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

Related Questions