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

Today I found below error in the nginx logs.
Upstream timed out (110: Connection timed out) while reading response header from upstream

This error generally occurs when nginx is configured as reverse proxy to other webserver like Apache and till now I was fixing it by increasing the proxy_read_timeout in nginx configuration.

Nginx Reverse Proxy

Increase the proxy_read_timeout in nginx configuration file.

proxy_read_timeout 600;

But this server was standalone nginx server with php-fpm.  So I had to increase the fastcgi_read_timeout.

Standalone Nginx + PHP-FPM

Increase the fastcgi_read_timeout

fastcgi_read_timeout 600;

About 

Sreejit is the founder of Server Management Plus. His motto is "If there's an easier way, Why do it any other way" and following it, he has created a lots of automation scripts for the company using which we are able to resolve issue at an extremely fast rate and save lots of time. He has a very keen interest in new technologies and spend most of his free time online researching about it apart from listening music and watching movies.

2 thoughts on “Upstream timed out (110: Connection timed out) while reading response header from upstream”

  1. Charlie,

    Doesn’t increasing the timeout have impact on increase in queue length, thereby increasing response times.

Comments are closed.