3 ms·
Why would anyone want to run Apache and Node.js? What is so special about Apache? Use nginx. And what do you mean by "with"? Just have Node listen on a differe
by EGreg 16y ago
Why would anyone want to run Apache and Node.js? What is so special about Apache? Use nginx.
And what do you mean by "with"? Just have Node listen on a different port, what's the big deal about this?
- tlrobinson 16y agoMost people don't like their public web servers to be on ports other than 80/443. If you want the resources served by Node.js and another webserver to be on the same domain/port you need some sort of proxy configuration.
- EGreg 16y agoOkay but I am assuming that most web servers are not run from users' private computer networks, but from dedicated data centers, or somewhere in "the cloud". But yea I agree if you want node to listen on port 80 then you either forward certain URLs to it (using nginx this is easy), or or you just get another IP to point to the same machine, which is probably better.