将虚拟目录添加到现有网站 [英] Add virtual directory to an existing WebSite
问题描述
是否可以添加虚拟目录(例如IIS中的虚拟目录)到现有网站,并托管在 Azure门户网站完成吗?
Is it possible to add a virtual directory (like in IIS) to an existing website, hosted in Azure App Service. If so can this be done via the Azure Portal?
推荐答案
Virtual Directories are supported for Azure Websites. See Configuring Azure Websites for what you can do through the Azure Management Portal.
从Azure门户:
-
点击网站,然后转到配置.
然后向下滚动至虚拟应用程序和目录(最后一个配置部分).
Then scroll down to virtual applications and directories (the last config section).
输入您的虚拟目录和相对于站点根目录的物理路径,然后单击保存.
Enter your virtual directory and the physical path relative to the site root and click Save.
作为 Azure网站的替代方法,您可以使用云服务网络角色或虚拟机功能.您还可以使用 Azure存储链接到静态内容.
As an alternative to Azure Websites, you could use the Cloud Services Web Role or Virtual Machine capability. You could also use Azure Storage to link to your static content.
这篇关于将虚拟目录添加到现有网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!