I have a single Node process and it runs on 127.0.0.1:1337
I have downloaded Nginx and have only a file called
nginx.conf
insideconf/
directory. I am using Windows 7. There are nosites-enabled
orsites-available
directories as everyone say.
When I hit the url as "www.mysite.com" or "mysite", it should be pointed to the node process's IP address. But whenever I try to hit "www.mysite.com" I get the 'url not found' error from the browser. I want to redirect it to my node process , but 127.0.0.1:1337
should not be displayed in the URL bar.
How do I setup Nginx to point to my Node.js
public/
folder. Should I install Node.js inside thehtml
folder of my Nginx installation??