Azure, 将app service放在application gateway之后(已给app service启用专用终结点),我需要通过自定义域访问,后端的app…
- User
Azure, 将app service放在application gateway之后(已给app service启用专用终结点),我需要通过自定义域访问,后端的app service还需要配置自定义域吗?我的理解是不需要,否则通过自定义域会绕开application gateway直接到app service。
Assistant
您的理解是正确的。在 Azure 中,当您将 App Service 放置在 Application Gateway 之后,并且已经为 App Service 启用了专用终结点,您不需要在 App Service 上配置自定义域。
以下是详细的解释:
-
Application Gateway 配置:
- 您需要在 Application Gateway 上配置自定义域。这意味着当用户通过自定义域访问您的应用程序时,请求将首先到达 Application Gateway。
-
后端池配置:
- 在 Application Gateway 中,您需要将 App Service 添加到后端池。这可以通过专用终结点来实现,这样 Application Gateway 可以通过私有链接安全地路由流量到 App Service。
-
App Service 配置:
- 由于流量是通过 Application Gateway 路由的,App Service 不需要公开的自定义域配置。App Service 可以继续使用其默认的 Azurewebsites.net 域,因为它不会直接暴露给公共互联网。
-
流量路由:
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.