北屋生存主义

北屋工作室 - 中国生存主义和灾难信息第一站

快速判断502、504错误是来自nginx配置问题还是phpfpm配置问题

2021-10月-17 周日 23:02 +0800

在Nginx+FastCGI 配置测试中

其中在request_terminate_timeout设置为永不超时的情况下,nginx中fastcgi_read_timeout 的设置时间将影响到最终的超时时间。

测试中,如果是php-fpm中的超时

将显示 502 Bad Gateway

<html>

<head><title>502 Bad Gateway</title></head>

<body bgcolor=”white”>

<center><h1>502 Bad Gateway</h1></center>

<hr><center>nginx</center>

</body>

</html>

如果是nginx中cgi配置超时

将显示 504 Gateway Time-out

<html>

<head><title>504 Gateway Time-out</title></head>

<body bgcolor=”white”>

<center><h1>504 Gateway Time-out</h1></center>

<hr><center>nginx</center>

</body>

</html>

趣知识 , , , , , 北屋的k 快速判断502、504错误是来自nginx配置问题还是phpfpm配置问题已关闭评论
阅读量: 21,592

Comments

Comments are closed.