簡體   English   中英

為什么通過 Azure 前門的請求在瀏覽器上顯示后端池 url 而不是前端/域?

[英]Why does a request through Azure front door shows backend pool urls on the browser instead of frontends/domains?

我有一個 azure 前門,它具有自定義前端/域、后端池和配置為使用 azure web 應用程序作為后端的路由規則。 When i go the website the request passes through front door as it should and picks the best available backend, but it displays the azure webapp's url on the browser from the backend pool and not the azure front door domain. 當我被定向到后端並且不在瀏覽器中顯示 azure web 應用程序的 url 時,我希望在瀏覽器中有前端/域。

例如,當我 go 到www.mysite.com時,我希望它像www.mysite.com/foo (顯示來自后端 Z2567A5EC9705EB7AC2C984033E06189D 的內容)

關於如何實現或是否有可能實現的任何指導?

Azure 前門只是對傳入的客戶端流量進行簡單的 URL 轉發。 After my validation, if we select the forwarding protocol to HTTPS only , the address bar will not display the backend URL when you access the front door URL.

在此處輸入圖像描述

但是,您實際上仍然可以在set-cookie中看到真正的后端域。

在此處輸入圖像描述

有關更多信息,您可以閱讀后端主機 header以及類似的問題here1here2

這可以使用 AFD 中的轉發功能,但如果您使用重定向,那么實際的后端 URL 當然會顯示,因此配置基本轉發和 AFD URL 將始終顯示

暫無
暫無

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

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