I followed tutorial(https://www.digitalocean.com/community/articles/how-to-install-rails-and-nginx-with-passenger-on-ubuntu) to set up my Rails App(nginx 1.4.4, passenger 4.0 and mysql) on DigitalOcean's 512MB RAM and 20GB Disk server. I got below error once I started Nginx and visit my App.
I checked /opt/nginx/logs/error.log, which shows "1 upstream prematurely closed connection while reading response header from upstream" at the latest line.
Is this a performance issue on DigitalOcean's 512MB RAM server? anyone know how to fix this? Thanks!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart.
If you run into issues leave a comment, or add your own answer to help others.