Nginx - ошибка upstream prematurely closed connection while reading response header from upstream: различия между версиями
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Admin iph (обсуждение | вклад) (Новая страница: «=== Nginx - ошибка upstream prematurely closed connection while reading response header from upstream === Ошибка вида: *5622 upstream prematurel…») |
Admin iph (обсуждение | вклад) |
||
(не показана 1 промежуточная версия этого же участника) | |||
Строка 1: | Строка 1: | ||
+ | [[Файл:B_1.gif |link=https://bit.ly/3tbFsd6| Доступная цена]] | ||
+ | |||
+ | |||
=== Nginx - ошибка upstream prematurely closed connection while reading response header from upstream === | === Nginx - ошибка upstream prematurely closed connection while reading response header from upstream === | ||
Строка 10: | Строка 13: | ||
proxy_send_timeout 120s; | proxy_send_timeout 120s; | ||
proxy_read_timeout 120s; | proxy_read_timeout 120s; | ||
+ | |||
+ | |||
+ | |||
+ | Была таже ошибка из-за проблемы с правами. Нужно сбросить на 755/644 для сайта: | ||
+ | # find . -type d -exec chmod 755 {} \; | ||
+ | # find . -type f -exec chmod 644 {} \; |
Текущая версия на 17:34, 26 мая 2021
Nginx - ошибка upstream prematurely closed connection while reading response header from upstream
Ошибка вида:
*5622 upstream prematurely closed connection while reading response header from upstream
означает, что скрипт долго выполняется apache и nginx не получил от него ответ через время которое установлено в конфиге.
Пробуем поднять таймауты в конфиге nginx - на выбор в секциях http, server или location:
proxy_connect_timeout 90s; proxy_send_timeout 120s; proxy_read_timeout 120s;
Была таже ошибка из-за проблемы с правами. Нужно сбросить на 755/644 для сайта:
# find . -type d -exec chmod 755 {} \; # find . -type f -exec chmod 644 {} \;