I'm running into an issue with a new site I just launched for a private repo but one site works and the other generates a 522 so I'm wondering if it's due to my CNAME. Here's a list of what I've done.
In the domain provider I modified the nameservers to point to Cloudflare as directed. In Cloudflare I've setup each site and pointed to Github Page's IPs as directed:
For site A I have a CNAME as an alias with a value of username.github.io. For site B I had to remove the CNAME file when added to site B due to the domain URL pointing to site A even though in Jekyll's _config.yml the URLs were:
site A
baseurl: ""
url: "http://siteA.com"
site B
baseurl: ""
url: "http://siteB.com"
Both sites are built using Jekyll and uploaded to a directory named /docs
but one is a blog and one is an app landing page. I'm getting reports that site B is throwing a 522:
The only difference from A & B is that A has a CNAME file with username.github.io. When I add a CNAME to Cloudflare site B the URLs are incorrect so I'm wondering in my CNAME on Cloudflare can I code it as:
Site A
username.github.io/siteA-repo
and
Site B
username.github.io/siteB-repo
both sites under Settings > Source have master branch /docs folder
selected. Both sires have SSL enabled.
Reference setups:
- How to setup a static website using GitHub Pages and Cloudflare with your own Domain Name.
- How To
- How to Deploy Websites on Custom Domains using Cloudflare and Github Pages
After contacting Github the reply:
This error usually means there's a configuration error on Cloudflare's end that means it's not pointing towards Github.
From the information you've sent (same as above) it looks like your domain has been set up to point to the correct IPs, so it should be pointing towards Github.