LAMP + Node.js via nginx
I have existing home Server with Linux (Debian) + Apache + PHP + MySQL. I want to add node.js also as an additional dev platform. Also I read about problem of node.js with static content I saw advices about nginx as a front-end server for node.js.
So currently I want to keep existing parts and extend server with node. Also I want to keep existing apache configuration (hosts, etc).
Please advice how to build such a system an what configuration must be done.
My first version of this is:
nginx on top of Debian server, then nginx must proxify requests from users to Apache or Node depends on host.
But I'm not sure that this is right way.
Solution is very simple: create a separate virtual host is NGINX and map it to Node.js.