Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

LAMP + Node.js via nginx

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.

Problem courtesy of: ICE


Solution is very simple: create a separate virtual host is NGINX and map it to Node.js.

Solution courtesy of: ICE


View additional discussion.

This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

LAMP + Node.js via nginx


Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription