我必须在正在运行的生产服务器之前实现一个代理服务器来路由和保护生产服务器。 在生产服务器上多个node.js应用程序监听不同的端口。
client1.example.com --> ProxyServer --> Application on LiveServer1 at port 3001 client2.example.com --> ProxyServer --> Application on LiveServer1 at port 3002 ... client100.example.com -> ProxyServer --> Application on LiveServer6 at port 3001
所有子域名只能通过https访问,用户不应该被注意到任何ssl证书问题(man-in-the-the-middle)。 我正在调查使用Squid或Nginx。 你能推荐什么这个设置?
鱿鱼被认为是工作站的代理例如 – 你需要一个反向代理,所以nginx是一个不错的select,我想。
现在,Nginx是反向代理的最佳select。 另一个好的select是清漆。 Squid提供了很多function,但它的目的是作为正向代理,而不是反向。 其他人的重点是反向代理:)