如何修复自定义 github 页面域上的 ERR_TOO_MANY_REDIRECTS? [英] How to fix ERR_TOO_MANY_REDIRECTS on custom github pages domain?

查看:35
本文介绍了如何修复自定义 github 页面域上的 ERR_TOO_MANY_REDIRECTS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我一天前在 namecheap 上设置了一个自定义域的 github 页面,没有问题.然后我尝试通过 github 新添加的对页面上 https 的支持切换到 Https.经历太多挫折后,我切换到 CloudFlare for Https,但我现在收到错误 ERR_TOO_MANY_REDIRECTS

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 pages. After too much frustration I switched over to CloudFlare for Https but I'm now getting an error ERR_TOO_MANY_REDIRECTS

这是我在 CloudFlare 上的 DNS 设置.

Here's my DNS settings on CloudFlare.

推荐答案

在加密"选项卡中检查您的 SSL 设置.您应该将其设置为完整".如果设置为灵活",则 Cloudflare 将使用 HTTP 连接到源,即使客户端浏览器通过 HTTPS 连接到 Cloudflare.在这种情况下,GitHub 可能会响应重定向到 HTTPS - 没有意识到原始客户端已经在使用 HTTPS,因此此重定向会创建一个循环.

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.

这篇关于如何修复自定义 github 页面域上的 ERR_TOO_MANY_REDIRECTS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆