Question
502 Nginx and Puma - Ubuntu 14.04
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
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.
×