Nginx

nginx反向代理還是squid正向代理(透明)?

  • April 9, 2014

我必須在正在執行的生產伺服器前實現一個代理伺服器來路由和保護生產伺服器。在生產伺服器上偵聽不同埠的多個 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 證書問題(中間人)。我正在研究使用 Squid 或 nginx。您對此設置有何建議?

例如,squid 被認為是工作站的代理——你需要一個反向代理,所以我認為 nginx 是一個不錯的選擇。

如今,Nginx 是反向代理的最佳選擇。另一個不錯的選擇是清漆。Squid 提供了很多功能,但它的目的是作為正向代理工作,而不是反向工作。其他的重點是反向代理:)

引用自:https://serverfault.com/questions/587441