HTTPS for a Github pages custom domain with AWS

Viewed 1236

I have decided to switch to HTTPS for my Github pages custom domain, to do so I have followed this tutorial step by step. Namely:

  • Requested for an SSL in AWS Certificate Manager
  • Created a CloudFront distribution
  • Changed my DNS A Record to an alias to that distribution

But for some reason, when accessing christopherkade.com the URL follows the default root object I have set in the distribution (christopherkade.com/index.html) and Firefox gives me the following error The page isn’t redirecting properly and Chrome christopherkade.com redirected you too many times..

Here are my DNS records:

enter image description here

My page is hosted on this repository.

Did I forget something?

1 Answers

I have found a solution, but it required a change in the service used to deliver HTTPS. I sum it up here, but in short:

I now use Cloudflare as my DNS and changed my nameservers on AWS Route 53 to the ones given by Cloudflare after setting up my website.

As you can see christopherkade.com is now served in HTTPS.

Related