在Nginx錯誤日志中,有大量的下列信息:
Upstream timed out (110: Connection timed out) while reading response header from upstream
這種情況主要在廈門兩種情況下發生:
1. nginx proxy
需要適當的調整proxy_read_timeout值。
2. Nginx作為php-fpm等等其他的有上游服務
在這種情況下,適當的調整fastcgi_read_timeout選項值
1
2
3
4
5
6
7
|
location ~* .php$ {
include fastcgi_params;
fastcgi_index index.php;
fastcgi_read_timeout 150;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
|