Re:Drop Root Privileges in Node.js after Binding to Port 80
by Wintamute on Tuesday December 04, 2012 @05:39PM
(#4873725)
If you're running a few services and sites on the same box you need some sort of proxy listening on port 80 reverse proxying incoming requests to the correct internal port. i.e. an incoming request looking for "www.mynodeapi.com" could be internally routed to "127.0.0.1:8080" (or wherever your node app is listening). The proxy could be nginx, haproxy or perhaps even a node app using node-http-proxy. AFAIK, if you need proper web sockets support your proxy has to be node based or haproxy.
[ Parent
| on HN ]
There are no comments on this comment yet.