gpt4 book ai didi

azure - 如何使用 mysite.com/app1 和 mysite.com/app2 的 url 设置 azure 应用程序服务

转载 作者:行者123 更新时间:2023-12-03 03:04:12 24 4
gpt4 key购买 nike

我想在 azure 中设置 Azure AppServices。我有多个应用程序想要在同一域下运行,并且要应用同样的 url。 mysite.com/app1、mysite.com/app2 等。我知道我可以在 IIS 下执行此操作,但我想使用 Azure AppServices,而不是使用我必须管理的虚拟服务器。

最佳答案

I have multiple apps that I want to run under the same domain and the url to be applied as such.

根据我的理解,您可以在单个 Azure 网站中配置多个虚拟目录和应用程序。您可以按照以下步骤操作:

  • 设置虚拟目录或应用程序

    登录 Azure 门户,选择您的 Web 应用,单击“设置 > 应用程序设置”并添加以下配置:

    enter image description here

  • 将应用程序部署到 Azure

    您可以使用KUDU或其他工具(例如 FTP 等)来部署您的应用程序。

    enter image description here

测试:

enter image description here enter image description here

此外,这里有一个 tutorial关于将多个虚拟目录部署到单个Azure网站,您可以引用。

更新:

我通过kudu检查了有关APP_POOL_ID的环境变量:https://{your-appname}.scm.azurewebsites.net/Env.cshtml 并使用 IIS Manager 远程连接到我的 azure Web 应用程序,找到以下设置:

enter image description here

要为您的Azure Web应用程序添加自定义域,您可以引用此tutorial .

关于azure - 如何使用 mysite.com/app1 和 mysite.com/app2 的 url 设置 azure 应用程序服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46106804/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com