我有application1.Azurewebsites.net和application2.Azurewebsites.net,我想使用Azure应用程序网关,我跟着documentation,我能够为一个应用程序做到这一点,但没有关于如何实现相同的文档一个应用程序,我设置了多站点设置后,我从应用程序网关端点获得400响应,我的后端池显示健康状态。
对于Gateway中的多应用程序设置。
BackEnd Pool
App Services -> app1 (BackEndpool1)
App Services -> app2 (BackEndpool2)
httpsettings
setting1 => port 80 , use appservices , customprobe (httpsettings1)
setting2 => port 80 , use appservices , customprobe (httpsettings2)
Listeners
Multisite => fronendport 80 => hostname = app1 (Listeners1)
Multisite => fronendport 80 => hostname = app2 (Listeners2)
Rules
(Listeners1) -> (BackEndpool1) -> (httpsettings1)
(Listeners2) -> (BackEndpool2) -> (httpsettings2)
愚蠢的我,我错过了为app1和app2添加应用程序Gateway的CName的步骤一旦我这样做它开始工作