: Will my domain setup (GoDaddy) work with Github pages CDN? I've registered an Apex domain (example.com) on GoDaddy. I'd like to link it to a project page (gh-pages branch). My GoDaddy setup is
I've registered an Apex domain (example.com) on GoDaddy.
I'd like to link it to a project page (gh-pages branch).
My GoDaddy setup is as follows:
Two A records that point to Github IPs.
A CNAME record for www subdomain that points to my github pages URL (without the /project-name part).
My Github setup is:
A repository with a gh-pages branch (/project-name)
A CNAME file in this branch that points to example.com
After reading Github Pages docs and other answers on SO for an hour or so I'm still confused:
Will the site work both for example.com and example.com URLs?
Will I benefit from Github's CDN and DoS protection.
If not I'd really appreciate further advice or reference information.
More posts by @XinRu657
1 Comments
Sorted by latest first Latest Oldest Best
Will the site work both for example.com and example.com URLs?
Yes it will work because you have setup both A records and CNAME records in your Godaddy account. Your current CNAME file in your github pages is this example.com hence it will redirect your example.com visors to example.com. If you have used example.com in CNAME(Github) file then it will redirect all visitor from example.com to example.com. Hope it will clear your doubt.
Will I benefit from Github's CDN and DoS protection.
Well your current setting points that, you're using apex domain. And github
recommended to use www as CNAME, if you want to get benefits from their CDN. So no benefits if you've used apex or custom domain like(blog.example.com).
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.