Drupal Page returning 502 error page instead of 404

孤者浪人 提交于 2021-01-29 08:06:49

问题


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.

I am getting "upstream sent unsupported FastCGI protocol version: 72 while reading response header from upstream" error in logs.

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.

Could anyone please suggest me

Thanks in Advance!


回答1:


I added

try_files $uri =404;

in nginx configuration file at location settings. This resolved my issue.



来源:https://stackoverflow.com/questions/53606945/drupal-page-returning-502-error-page-instead-of-404

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!