-
Notifications
You must be signed in to change notification settings - Fork 13
Home
Philipp Rudiger edited this page Mar 21, 2018
·
3 revisions
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
- Go to AWS CloudFront and click
Create distribution
- Click
Web: Get started
- 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 ofholoviews.org.s3.amazonaws.com
(this ensures that subdirectories resolve correctly, e.g.holoviews.org/user_guide/
vs. requiringholoviews.org/user_guide/index.html
) - Set origin path to
index.html
- List alternate domain names (CNAMEs), e.g. holoviews.org and www.holoviews.org
- Select custom SSL certificate then request or import certificate with ACM
- Once in ACM add the domain names, e.g. holoviews.org and www.holoviews.org
- Select DNS validation (if using Route53 to manage domain)
- Review and validate certificate
- Now choose the newly created certificate in the CloudFront configuration
- Navigate to Route53 select the hosted zone and create an ALIAS record pointing to the CloudFront distribution (should auto-complete)