How to run Apache and Node.js together (the right way)
gist.github.com
gist.github.com
If your entire website is run by your Node.js app, a better approach would be to use Node.js as your primary app/web server, and embed your static assets using a separate domain. For example, you'd use static.mydomain.com for all your static assets, which would point to Apache/Nginx, while your page requests are all handled by Node.js.
The best solution is to have your static files on a CDN.
If you want to do what you're suggesting you should use an equally performant web server like nginx, which is also asynchronous/event-driven.
Edit: we have that parallels/ensim thing rather than cpanel but the point stands.
As it happens I wouldnt use node.js in production right now, but thats not the point.
On the other hand, if you are integrating Node with existing code, say PHP, then use TCP sockets behind a firewall, or Unix sockets for communication.
And what do you mean by "with"? Just have Node listen on a different port, what's the big deal about this?
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.
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.