简体   繁体   English

Cloudflare 在我的服务器上引发 524 错误

[英]Cloudflare throws 524 an error on my server

Wonder why Cloudflare throws an error on my server which is up?想知道为什么 Cloudflare 在我的服务器上抛出错误吗? I can verify the server is up by visiting the ip in my browser.我可以通过在浏览器中访问 ip 来验证服务器是否已启动。

I checked system log, apache log, no error found.我检查了系统日志,apache 日志,没有发现错误。 Btw, I just set the domain on a static site.. I can't figure out how to fix it.顺便说一句,我只是在 static 站点上设置域.. 我不知道如何修复它。 Googled and found no solution谷歌搜索并没有找到解决方案

A 524 error states that CloudFlare was able to make a TCP connection to the origin, but the origin did not reply with a HTTP response before the connection timed out. 524 错误表明 CloudFlare 能够与源建立 TCP 连接,但源在连接超时之前没有回复 HTTP 响应。 This means that CloudFlare is able to make a network connection to the origin server, but the origin server took too long to respond to the request.这意味着 CloudFlare 能够与源服务器建立网络连接,但源服务器响应请求的时间太长。

https://support.cloudflare.com/hc/en-us/articles/200171926-Error-524-A-timeout-occurred https://support.cloudflare.com/hc/en-us/articles/200171926-Error-524-A-timeout-occurred

如果您的过程花费超过 100 秒(1.67 分钟),则 CloudFlare 会引发错误,此链接在 PHP 中解析

In PHP app this could be that session don't return data - It hang on because of cookies.在 PHP 应用程序中,这可能是该会话不返回数据 - 它由于 cookie 而挂起。 Clear application data to create new session and try again.清除应用程序数据以创建新会话并重试。

Official for default and free is 100 seconds before Cloudflare send this header.官方默认和免费是 Cloudflare 发送此标头前 100 秒。 For enterprise there is 524 to max 600 seconds option (not default)对于企业,有 524 到最大 600 秒选项(非默认)

Sometimes Cloudflare throws 524 an error on the server because your IP address is blocked by Cloudflare.有时 Cloudflare 在服务器上抛出 524 错误,因为您的 IP 地址被 Cloudflare 阻止。 For looking for how to increase time best to first check if your IP address is not locked by Cloudflare.要寻找如何增加时间最好首先检查您的 IP 地址是否未被 Cloudflare 锁定。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM