Drupal页面返回502错误页面而不是404错误页面 [英] Drupal Page returning 502 error page instead of 404
问题描述
When I am searching for a link from my drupal website https://example.com/index2.php?option=com_ckforms&view=ckforms&id=1&Itemid=190 i am getting 502(bad gateway) response and redirecting to 502 nginx error page instead of 404 as 5xx errors are reserved for actual service errors.
我在日志中收到上游发送了不受支持的FastCGI协议版本:72,同时从上游读取响应标头"错误.
I am getting "upstream sent unsupported FastCGI protocol version: 72 while reading response header from upstream" error in logs.
我发现原因可能是-该服务器(Web前端)收到来自上游服务器(Web后端)的无效响应,而该服务器通过访问该服务器来满足请求.在大多数情况下,这并不意味着上游服务器服务器已关闭,但上游服务器和网关/代理在交换数据的协议上不一致.问题最常见是在Web前端和后端之间的IP通信出现问题时引起的.在尝试解决此问题之前,应彻底清除浏览器缓存.
I found that the reason could be- This server (Web Front-End) received an invalid response from an upstream (Web Back-End) server it accessed to fulfil the request.In most cases this will not mean that the upstream server is down, but rather that the upstream server and the gateway/proxy do not agree on the protocol for exchanging data.The problem is most commonly caused when there is a problem with IP communications between the Web Front and Back-Ends. Before you attempt to resolve this problem you should clear your browser cache completely.
任何人都可以建议我
预先感谢!
推荐答案
我添加了
try_files $ uri = 404;
try_files $uri =404;
在位置设置处.这解决了我的问题.
in nginx configuration file at location settings. This resolved my issue.
这篇关于Drupal页面返回502错误页面而不是404错误页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!