這是可能的反向代理。
1)您需要安裝URL Rewrite和ARR module爲IIS
2)啓用ARR。在Application Request Routing
頁面上,選擇Enable proxy
3)創建重寫規則
<rewrite>
<rules>
<rule name="rewrite custom.customer.com/patha" stopProcessing="true">
<match url="patha" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^custom.customer.com$" ignoreCase="true" />
</conditions>
<action type="Rewrite" url="http://a.internal-app.com/" />
</rule>
<rule name="rewrite custom.customer.com/pathB" stopProcessing="true">
<match url="pathb" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^custom.customer.com$" ignoreCase="true" />
</conditions>
<action type="Rewrite" url="http://b.internal-app.com/" />
</rule>
</rules>
</rewrite>
附:你的資源可能有問題(圖片,樣式,CSS,JS)。因爲您的html可能包含資源的絕對路徑
您可以在作者創建用於修復相關URL的出站規則時檢查此帖子https://blogs.iis.net/carlosag/setting-up-a-reverse-proxy-using-iis-url-rewrite-and-arr