Hi everyone, I’m new to fastpages and facing an issue with custom subdomain. I successfully published to
<myusername>.github.io/<myrepo> with no problem. But I couldn’t make it work with my custom subdomain
The site for
myrootdomain.com is a static site hosted in S3, the domain is in AWS Route 53. I’d like to direct
blog.myrootdomain.com to the gh-pages fastpages site at
<myusername>.github.io/<myrepo>. Here is what I did:
- I added CNAME file in the fastpages repo with
- I edited
- I edited
custom domainin the repo setting to be
- I went to Route 53 and added CNAME record with name
At this point, when I type
<myusername>.github.io/<myrepo> in the browser it switches to
blog.myrootdomain.com automatically but it says the domain doesn’t exist. I’m new to this and confused what I’m doing wrong.
Before I had the S3 hosted static site, I used to point
myrootdomain.com to my previous gh-pages site
<myusername>.github.io, following instructions for apex domain in the documentation here, which is to use an A record with github IP addresses, and it worked. Now my situation changed, i.e. I have the apex domain pointing to an S3 site, and would like to point
blog.myrootdomain.com to the fastpages project site.
Hope I have stated my problem clearly. I have no idea where the problem is, can anyone who knows DNS, Route 53 and gh-pages help me understand what’s going on and what I should do? Thanks in advance!