0

I'm getting this error in log files. it happens when a person reloads page many times. other than that website is working fine. I'm using elastic beanstalk with Nginx + Puma.

upstream prematurely closed connection while reading response header from upstream, client: 172.XX.XX.XX, server: _, request: "GET / HTTP/1.1", upstream: "http://unix:///var/run/puma/my_app.sock:/", host: "example.com"

Also, I've added these configurations for the Nginx but these configurations didn't fix the problem.

proxy_connect_timeout 300;
proxy_read_timeout 300;

0 Answers0