Loving Coding & Visual Design
Nginx + php-fpm "504 Gateway Time-out"
Nginx log error like the following:
2014/04/06 23:54:32 [error] 13340#0: *25756 upstream timed out (110: Connection timed out) while reading response header from upstream
Add three timeouts, the problem is resolved.
nginx.conf:
http{
fastcgi_connect_timeout 300s;
fastcgi_send_timeout 300s;
fastcgi_read_timeout 300s;
#fastcgi_buffer_size 128k;
#fastcgi_buffers 8 128k;
#fastcgi_busy_buffers_size 256k;
#fastcgi_temp_file_write_size 256k;
#fastcgi_intercept_errors on;
}
2014/04/06 23:54:32 [error] 13340#0: *25756 upstream timed out (110: Connection timed out) while reading response header from upstream
Add three timeouts, the problem is resolved.
nginx.conf:
http{
fastcgi_connect_timeout 300s;
fastcgi_send_timeout 300s;
fastcgi_read_timeout 300s;
#fastcgi_buffer_size 128k;
#fastcgi_buffers 8 128k;
#fastcgi_busy_buffers_size 256k;
#fastcgi_temp_file_write_size 256k;
#fastcgi_intercept_errors on;
}
最 近 文 章
- 论程序员的幸福感 - Wed, 08 Oct 2014 11:18:30 +0000
- $.parseJSON Unexpected token t错误 - Fri, 12 Sep 2014 03:53:26 +0000
- ImageMagic把pdf转成jpg出现黑色块的问题 - Thu, 28 Aug 2014 11:27:36 +0000
- 现代浏览器工作原理 - Thu, 28 Aug 2014 09:34:21 +0000
- 前端打包压缩合并工具Fis - Mon, 18 Aug 2014 14:44:19 +0000
- seajs开发环境搭建 - Thu, 14 Aug 2014 17:42:26 +0000
- Yii PHPUnit - Mon, 11 Aug 2014 04:07:44 +0000
- node_modules无法删除integration错误 - Wed, 06 Aug 2014 15:55:07 +0000
- CentOs6.5测试Hadoop - Wed, 30 Jul 2014 15:15:19 +0000
- 谷歌彻底被墙,该怎么办? - Sun, 08 Jun 2014 05:09:11 +0000