Question
Do I need Nginx? Is this error I got a problem?
It sounds like I need nginx to make my server available to the public but im not sure. And is it supposed to be installed on the same droplet as everything else?
I am following this guide: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-16-04#manage-application-with-pm2
I got this error when doing the first step: http://pastebin.com/aVbf60zE
Then when I try to edit “default server block configuration file” it comes up blank, and when I try to save it, it says no such file or directory.
I do get “Welcome to nginx!” in my browser.
I do not see an nginx folder in /etc/ so I’m not sure it installed to the right place.
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.
×
I ended up running the first command again, and it seems to have installed correctly, and put the right files in the right places. I was able to edit the file as the guide suggested.
But now I still see the “Welcome to nginx!” page in my browser rather than the node hello world file. Any ideas?