简体   繁体   中英

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.

解决方案非常简单:创建一个单独的虚拟主机是NGINX,并将其映射到Node.js。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM