Node.js + Nginx - What now?
@lebyy▲ 0 net votes
Problem: I've set up Node.js and Nginx on my server. Now I want to use it, but, before I start there are 2 questions: How should they work together? How should I handle the requests? There are 2 concepts for a Node.js server, which one is better: a. Create a separate… Fix (from the top answer): Nginx works as a front end server, which in this case proxies the requests to a node.js server. Therefore you need to set up an Nginx config file for node. This is what I have done in my Ubuntu box: Create the file yourdomain.example at /etc/nginx/sites-available/ : vim /etc/nginx/sites-available/yourdomain.example…