I only have one VPS hosting and using nginx for Django web application. Now, I prepare to start new app with Node.js and can I host on current Server ? I think, Node.js is running the own http server and it can conflict with nginx server.
Share
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.
You can host multiple http servers on single VPS. Conflict will happen only if both, nginx and node.js, are bound to the same port. For example if your nginx web server is listening on port 80, then your node.js http server should listen on other than 80, lets say port 8080. You can also set up reverse proxy (in case you need to abstract your internal network and serve clients on the same port) where you will accept incoming connections on port 80 and nginx will forward communication specific for node.js to port 8080.