簡體   English   中英

重寫規則不適用於 Azure App Gateway

[英]Rewrite Rule is not working on Azure App Gateway

我需要截斷 URL 的一部分,我添加了重寫規則並將其與路由規則相關聯。 后端運行狀況也很好。 但是當我點擊 URL 時,它沒有得到更新

傳入 URL: https://contoso.com/my-web/manage-data/addresses/v1?addressComplete=avenue+de&addressSearchFormat=SINGLE_LINE&country=FR&processMode=FASTCOMPLETION

預計 URL https://contoso.com/addresses/v1?addressComplete=avenue+de&addressSearchFormat=SINGLE_LINE&country=FR&processMode=FASTCOMPLETION

在此處輸入圖像描述

問候,西瑟

我可以通過使用覆蓋后端路徑來解決這個問題。 在這種情況下不需要重寫規則。

參考: https://learn.microsoft.com/en-us/azure/application-gateway/configuration-http-settings

在此處輸入圖像描述

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM