您是否在不同路径中使用多个 Web 应用程序完成了单个域?

Have you done single domain with multiple web apps in different paths?

所以我尝试在 Azure 中使用应用程序网关并尝试执行以下操作:

单域 (app.mydomain.com),基于路径路由到不同的 Web 应用程序

赞:http://app.mydomain.com/app1 http://app.mydomain.com/app2

知道如何在应用程序网关中配置它吗?

我在路由到我的网络应用程序时不断收到 502 错误。

Any idea how to configure it in Application Gateway?

如果您想在应用程序网关中使用基于路径的路由。 当然,这是可能的。

我们可以使用路由规则指向特定的后端池。该后端池将指向您要处理该请求的任何服务器。

有关更多信息,您可以按照此 tutorial. And you also could refer to this blog 获取更多详细步骤