Запуск Django с веб-сервером Nginx 502 Bad Gateway
Как исправить проблему 502 Bad Gateway nginx/1.18.0 (Ubuntu) для запуска Django?
Журнал ошибок Nginx:
*29 upstream prematurely closed connection while reading response header from upstream, client: x.x.x.x, s>
2022/03/18 15:33:51 [error] 890#890: *13 upstream prematurely closed connection while reading response header from upstream, client: x.x.x.x,>
2022/03/18 15:42:18 [error] 1976#1976: *2 upstream prematurely closed connection while reading response header from upstream, client: x.x.x.x, >
2022/03/18 15:43:10 [error] 1976#1976: *2 upstream prematurely closed connection while reading response header from upstream, client: x.x.x.x, >
2022/03/18 15:44:35 [error] 1976#1976: *7 upstream prematurely closed connection while reading response header from upstream, client: x.x.x.x>