Create virtual directory on same azure web app

情到浓时终转凉″ 提交于 2020-01-18 10:27:27

问题


I have an application running on Azure, what I need is to have the application copied so different users can access for example site.com/s1 and site.com/s2 and use them as separate. The application is the same, the database will change.

I tried to create a virtual directory for my app but I get the same error every time: "The physical path for virtual path '/s1' is invalid."

I tried creating a physical directory from FTP and I can see the new directory, but Azure don't recognize it as a physical one.

I would like to have wwwroot/s1 wwwroot/s2 and access those apps the way I explained before.


回答1:


Please have a try to config the Virtual directory site/test1 on the Azure portal as following screenshot

When we push the WebApp to the Azure, we need to include the virtual directory path in the Site Name and Destination URL sections on the Connection tab

After that we can visit the WebApp with sitename/site1

We also can check the uploaded file from Azure Kudu tool (https://sitename.scm.azurewebsites.net/DebugConsole/?shell=powershell)



来源:https://stackoverflow.com/questions/43073570/create-virtual-directory-on-same-azure-web-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!