110: Connection timed out

回覆文章
yehlu
Site Admin
文章: 3244
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

110: Connection timed out

文章 yehlu »

http://www.ttlsa.com/nginx/nginx-upstre ... timed-out/

在Nginx错误日志中,有大量的下列信息:

Upstream timed out (110: Connection timed out) while reading response header from upstream

这种情况主要在下面两种情况下发生:

1. nginx proxy
需要适当的调整proxy_read_timeout值。

代碼: 選擇全部

location / {
        ...
        proxy_read_timeout 150;
        ...
    }
2. Nginx作为php-fpm等等其他的有上游服务
在这种情况下,适当的调整fastcgi_read_timeout选项值

代碼: 選擇全部

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;
}
回覆文章

回到「nginx」