I am just getting started with Cloudflare since I recently moved my static HTML blog from my VPS to Github Pages. In order to get https working I was informed Cloudflare would take care of the SSL (and other benefits).
However, my website seems to be very unstable. It was online for a while, it went offline again and after pushing a minor update to the blog via Github it seemed to work again. Now I checked it again and unfortunately it is offline again.
Probably I am doing someting wrong, but I have no clue why it is so unstable.
(Domain name is registered with DreamHost, nameservers are updated)
Do you mean I switch the CNAME that converts www to my github.io to DNS only? Or also the two A records that point to Github Pages (192.30.252.153/154)?
You have to delete the current A records (if you follow that guide) and then add the CNAME.
You cannot have an A/AAAA and a CNAME on the same host.
It doesn’t matter much, but the host you have in there (not necessary to even have one if you use the double CNAME that is the guide) must be the one with the A records, the other must have the CNAME (to your own domain, not to *.github.io because it can cause issues if they refuse a non-registered host).
Additionally you could want to create a Page Rule redirecting all traffic from https://jitsejan.com/* to https://www.jistejan.com/$1 so that you reduce the number of redirects to a minimum.
jitsejan@dev16:~/code/jitsejan.github.io-source$ dig jitsejan.com +nostats +nocomments +nocmd
; <<>> DiG 9.10.3-P4-Ubuntu <<>> jitsejan.com +nostats +nocomments +nocmd
;; global options: +cmd
;jitsejan.com. IN A
jitsejan.com. 291 IN A 104.24.122.235
jitsejan.com. 291 IN A 104.24.123.235
jitsejan@dev16:~/code/jitsejan.github.io-source$ dig www.jitsejan.com +nostats +nocomments +nocmd
; <<>> DiG 9.10.3-P4-Ubuntu <<>> www.jitsejan.com +nostats +nocomments +nocmd
;; global options: +cmd
;www.jitsejan.com. IN A
www.jitsejan.com. 299 IN A 104.24.122.235
www.jitsejan.com. 299 IN A 104.24.123.235
It seems like your company’s DNS fails to resolve the domain. If you can, try switching to Google’s or Cloudflare’s and retry. It should solve you issues.
As for Firefox and IE, Are those the latest version? Do you run Windows 10?
I enabled the forwarding rule. That seems to work fine.
It feels like my work network redirects parts of my traffic and that is why it fails? I have tried on my phone now, company traffic blocks the 4 URLs while on 4G I can open all four
I am indeed running Windows 10 and all browsers are up to date. I think it simply boils down to the fact that the DNS within the company cannot resolve the address.
Overall you believe that the configuration is correct right?
I believe it is. You can actually disconnect the domain from the GitHub page, as this should work without problems. Do confirm it (and in case correct me).