[後端] IIS反向代理

Hosting a Node.js application on Windows with IIS as reverse proxy
https://dev.to/petereysermans/hosting-a-node-js-application-on-windows-with-iis-as-reverse-proxy-397b

IIS中應用Application Request Route 配置反向代理
https://www.itread01.com/content/1545889926.html

利用 IIS7 的 ARR 模組做到 Reverse Proxy 機制
https://trei1205.blogspot.com/2013/10/iis7-arr-reverse-proxy.html

IIS 透過REVERSE PROXY上HTTPS
http://blog.davidou.org/archives/1411

IIS套件: URL Rewrite
https://www.iis.net/downloads/microsoft/url-rewrite

IIS套件: Application Request Routing
https://www.iis.net/downloads/microsoft/application-request-routing

使用教學:
1.安裝「URL Rewrite」與「Application Request Routing」兩個IIS套件

2.點開IIS站台的「URL重寫(URL Rewirte)」,點右邊「新增規則(Add Rule(s))」,點「反向代理(Reverse Proxy)」,新增要被轉過去的網址(例如localhost:8081)

3.於「比對URL」處,選「符合模式」與「規則運算式」,模式給: api(.*)
例如: http://localhost/api/testdata
可得到:
 {R:0} api/testdata
 {R:1} /testdata

4.於「動作」點「重寫URL」,若要轉到(http://localhost:8081/api/testdata),則填入:
http://localhost:8081/{R:0}


#IIS, reverse proxy, load balance, nginx, 反向代理, 負載平衡, 網址, 轉址, 重寫

留言