激活CloudFlare时重定向循环 [英] Redirect loop when activating CloudFlare

查看:110
本文介绍了激活CloudFlare时重定向循环的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将我的网站放在 CloudFlare ,但是不幸的是,当我激活CloudFlare时,我开始出现重定向循环(我正在使用Chrome)。

I am trying to put my website behind CloudFlare but unfortunately when I activate CloudFlare I start getting a redirect loop (I am using Chrome).

我尝试清除cookie,按照建议,但不能解决问题,并且在未激活CloudFlare时也没有此问题。

I have tried to clear the cookies, as recommended, but it does not solve the issue and I am not having this issue when CloudFlare is not activated.

是什么原因以及如何解决在我的 node.js 应用程序中?

What is causing this and how to solve it in my node.js application?

推荐答案

显然,这是一个配置问题。我使用的是灵活SSL,并将其更改为完全SSL。

Apparently, this was a configuration issue. I was on Flexible SSL and changed it to full SSL.

我的 node.js 应用正在接收来自CloudFlare并重定向到HTTPS,然后CloudFlare将其转换回HTTP,等等。

My node.js app was receiving HTTP requests from CloudFlare and redirected to HTTPS, which CloudFlare converted back to HTTP, etc...

这篇关于激活CloudFlare时重定向循环的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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