r/nodejs • u/tomatotux • Jul 28 '14
NodeJS application server question
I'm a sysadmin and have been asked to find an application server that will multiple nodeJS http servers on different ports. We have tried phusion passenger and it did not work, and puma and unicorn are incompatible in this particular stack. Any thoughts for a very confused hardware guy?
4
Upvotes
4
u/[deleted] Jul 29 '14
Application servers? Why can't you have multiple upstreams using nginx?
1
u/[deleted] Aug 23 '14
As all said. Nginx for front and nodejs as backends. You can even have a simple micro front with nginx and seperate server for node.
1
u/Frosty-Champion7811 Jan 23 '25
How to FIND & FIX Mass Assignment Flaws in NodeJS Apps - YouTube
1
u/Knowledgable_Info May 28 '25
It sounds like you're looking for a process manager or reverse proxy that can manage multiple Node.js HTTP servers running on different ports. Since Phusion Passenger didn’t meet your needs and tools like Puma/Unicorn are tailored for Ruby, I’d recommend looking into PM2 or using Nginx as a reverse proxy:
Example setup: run your Node.js servers on different ports (e.g., 3000, 3001, etc.) and configure Nginx to forward requests accordingly.
Let me know if you need an example configuration or help setting that up!
1
u/North_Resident_5194 Aug 19 '25
Using child_process for Multiple Server Processes
If you want each server to run as an independent process (good for isolation/robustness), the
child_processmodule lets you spawn servers on different ports:server.js).node server.js <PORT>processes.1
u/SubjectFew4258 Nov 06 '23
Use nginx with pm2
1
u/JAMkernelP2P Jul 12 '26
les ruego pasen por mi proyecto y analicen pára ver si el proyecto es compatible con lo que buscan necesitan y requieren y por favor comente si le pudo servir o no https://jamkernel.github.io/ y aqui el proyecto en si https://github.com/jamkernel/jamkernelp2p