Report this

What is the reason for this report?

502 Nginx and Puma - Ubuntu 14.04

Posted on July 3, 2017

I can’t figure out how to configure properly nginx and puma in my ruby on rails application. When a access it in the browser I get a 502.

I see many similar files:

  • /etc/nginx/nginx.conf
  • /etc/nginx/sites-enabled/myapp
  • /etc/nginx/sites-enabled/myapp_production
  • /etc/nginx/sites-avaliable/myapp_production
  • ~/apps/me/current/config/ngnix.conf

Do I really need that file config/nginx.conf inside my application? How do sockets are supposed to be configured and work? Is there a file among these I mentioned I don`t really need?

If Nginx was working/configured properly it should show this file /var/www/html/index.nginx-debian.html ?

If you need any additional information to be able to help me I’ll gladly provide it. Thanks in advance, Diego

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.