Nginx - ошибка upstream timed out (110: Connection timed out) while reading response header from upstream, client: различия между версиями

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Перейти к:навигация, поиск
 
(не показаны 2 промежуточные версии этого же участника)
Строка 1: Строка 1:
[[Файл:B_1.gif |link=https://bit.ly/3tbFsd6| Доступная цена]]
 
 
 
{{#seo:
 
{{#seo:
 
|title=Nginx - ошибка upstream timed out (110: Connection timed out) while reading response header from upstream, client
 
|title=Nginx - ошибка upstream timed out (110: Connection timed out) while reading response header from upstream, client
Строка 7: Строка 5:
 
|description=ршение ошибки Nginx - ошибка upstream timed out (110: Connection timed out) while reading response header from upstream, client
 
|description=ршение ошибки Nginx - ошибка upstream timed out (110: Connection timed out) while reading response header from upstream, client
 
}}
 
}}
 +
=== Nginx - ошибка upstream timed out (110: Connection timed out) while reading response header from upstream, client ===
 +
 +
[[Файл:B_1.gif |link=https://bit.ly/3tbFsd6| Доступная цена]]
 +
  
 
Ошибка
 
Ошибка
 
+
<syntaxhighlight lang="nginx">
 
  2014/10/03 14:21:00 [error] 549033#0: *10466327 upstream timed out (110: Connection timed out) while reading response header
 
  2014/10/03 14:21:00 [error] 549033#0: *10466327 upstream timed out (110: Connection timed out) while reading response header
 
  from upstream, client: 95.xxx.xxx.xxx, server: _, request: "GET /xxxrend.php HTTP/1.1", upstream:  
 
  from upstream, client: 95.xxx.xxx.xxx, server: _, request: "GET /xxxrend.php HTTP/1.1", upstream:  
 
   "http://201.45.xxx.xxx:80/xxxrend.php", host: "domain.ru"
 
   "http://201.45.xxx.xxx:80/xxxrend.php", host: "domain.ru"
 +
</syntaxhighlight>
  
  
 
если nginx проксирует динамику на apache, то решается добавлением и увеличением директив:
 
если nginx проксирует динамику на apache, то решается добавлением и увеличением директив:
 +
<syntaxhighlight lang="nginx">
 
     location / {
 
     location / {
 
         proxy_connect_timeout 300s;
 
         proxy_connect_timeout 300s;
Строка 21: Строка 25:
 
         proxy_read_timeout 300s;
 
         proxy_read_timeout 300s;
 
     }
 
     }
 +
</syntaxhighlight>
  
  
Строка 35: Строка 40:
 
Links:
 
Links:
 
*http://nginx.org/ru/docs/http/ngx_http_proxy_module.html
 
*http://nginx.org/ru/docs/http/ngx_http_proxy_module.html
*http://www.nginxtips.com/upstream-timed-out-110-connection-timed-out-while-reading-response-header-from-upstream/
 

Текущая версия на 13:52, 1 декабря 2020

Nginx - ошибка upstream timed out (110: Connection timed out) while reading response header from upstream, client

Доступная цена


Ошибка

2014/10/03 14:21:00 [error] 549033#0: *10466327 upstream timed out (110: Connection timed out) while reading response header
 from upstream, client: 95.xxx.xxx.xxx, server: _, request: "GET /xxxrend.php HTTP/1.1", upstream: 
  "http://201.45.xxx.xxx:80/xxxrend.php", host: "domain.ru"


если nginx проксирует динамику на apache, то решается добавлением и увеличением директив:

location / {
        proxy_connect_timeout 300s;
        proxy_send_timeout 300s;
        proxy_read_timeout 300s;
    }


С оф. сайта:

Синтаксис:	proxy_read_timeout время;
Умолчание:	
proxy_read_timeout 60s;
Контекст:	http, server, location
Задаёт таймаут при чтении ответа проксированного сервера. Таймаут устанавливается не на всю передачу ответа, а только 
между двумя операциями чтения. Если по истечении этого времени проксируемый сервер ничего не передаст, соединение
 закрывается.

Links: