Skip to content
Philipp Rudiger edited this page Mar 21, 2018 · 3 revisions

Setting up DNS against github pages

For Gandi.net, you need to add two 'A' records after setting a custom domain on the Github repo. Other domain registrars support the ALIAS/ANAME approach (untested).

The Github IPs for 'A' records are listed here.

Don't forget to add both records:

type: A
name: @
IPv4: 192.30.252.153
type: A
name: @
IPv4: 192.30.252.154

Setting up HTTPS for AWS

  1. Go to AWS CloudFront and click Create distribution
  2. Click Web: Get started
  3. Set up origin domain name to point to S3 bucket but point to the actual endpoint, i.e. use http://holoviews.org.s3-website-eu-west-1.amazonaws.com instead of holoviews.org.s3.amazonaws.com (this ensures that subdirectories resolve correctly, e.g. holoviews.org/user_guide/ vs. requiring holoviews.org/user_guide/index.html)
  4. Set origin path to index.html
  5. List alternate domain names (CNAMEs), e.g. holoviews.org and www.holoviews.org
  6. Select custom SSL certificate then request or import certificate with ACM
  7. Once in ACM add the domain names, e.g. holoviews.org and www.holoviews.org
  8. Select DNS validation (if using Route53 to manage domain)
  9. Review and validate certificate
  10. Now choose the newly created certificate in the CloudFront configuration
  11. Navigate to Route53 select the hosted zone and create an ALIAS record pointing to the CloudFront distribution (should auto-complete)
Clone this wiki locally