Nginx - ошибка upstream prematurely closed connection while reading response header from upstream

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Версия от 16:07, 22 августа 2019; Admin iph (обсуждение | вклад) (Новая страница: «=== Nginx - ошибка upstream prematurely closed connection while reading response header from upstream === Ошибка вида: *5622 upstream prematurel…»)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к:навигация, поиск

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;