具有独立 node.js 服务器的虚拟主机 [英] Virtual hosting with standalone node.js server
本文介绍了具有独立 node.js 服务器的虚拟主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
目前有没有办法使用 node.js 服务器进行虚拟托管(即在一个 IP 下托管多个域)?
Is there a way to currently do virtual hosting with node.js server (i.e. host multiple domains under one IP) ?
推荐答案
当然,您可以使用 bouncy 或 node-http-proxy 专门为此.
Sure, you can use bouncy or node-http-proxy specifically for that.
还有一个 Express 解决方案.看看这个例子.
There's also an Express solution. Check out this example.
这篇关于具有独立 node.js 服务器的虚拟主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文