How to fix ERR_TOO_MANY_REDIRECTS on custom github pages domain?

前端 未结 2 406
你的背包
你的背包 2020-12-18 15:58

So I had github pages set up with a custom domain without problem on namecheap a day ago. Then I tried switching to Https via github\'s newly added support for https on page

相关标签:
2条回答
  • 2020-12-18 16:02

    Check your SSL setting in the Crypto tab. You should have it set to "Full". If it is set to "Flexible", then Cloudflare will use HTTP to connect to the origin, even when the client browser connects to Cloudflare over HTTPS. GitHub is probably responding with a redirect to HTTPS in this case -- not realizing that the original client is already using HTTPS, and so this redirect creates a loop.

    0 讨论(0)
  • 2020-12-18 16:17

    More info here: https://support.cloudflare.com/hc/en-us/articles/115000219871

    The two typical causes of redirect loop errors are:

    • Cloudflare SSL options that are incompatible with your origin web server’s configuration, and
    • Page Rule misconfiguration.
    0 讨论(0)
提交回复
热议问题