Ryan Dahl recommends using Node.JS behind a reverse proxy (i.e nginx). Well.. what is reverse proxy? Any why should I use it with node.js? Is it wrong that my Node.JS app will serve all the content and all the traffic?
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try to look at wiki article.
If you are using node.js only for a certain parts/functionality of your application and other stuff is served by different web application framework for example, then reverse proxy can be used to determine which requests go to node.js and which go to the other framework. This way your application can run on the same port and act to clients as a standalone system. Without it you will probably have to server incoming requests separately for node.js and other framework on different ports (if they are both on the same machine for example). There are also other use cases of reverse proxies, like load balancing.
No, it’s not wrong. It’s specific to you and your needs or scenario.