【问题标题】:How to remove truncate part of url from azure application gateway rewrite url如何从 azure 应用程序网关重写 url 中删除 url 的截断部分
【发布时间】:2021-07-01 05:34:30
【问题描述】:

我想截断从传入请求到 azure 应用程序网关的部分 url。我们在 azure 存储帐户中托管了单页应用程序,并且在它前面有应用程序网关。

传入请求是 //abc.com/sit1/index.html --> 我需要路由到 ///index.html 我想从传入的请求中删除 sit1 并将其路由到目的地仅 /index.html

请帮忙

【问题讨论】:

    标签: api-gateway


    【解决方案1】:

    我也在为 MVC 应用程序寻找类似的解决方案。在 SPA 应用程序中,它很容易处理。如果有角度,只需在 index.html 中提及 basehref="/site1/" 即可。角度将适用于该 url 部分。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-09-11
      • 1970-01-01
      • 2021-08-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多