Azure Web应用中设置静态虚拟目录的方法(比如部署Django需要用到)
一、WEB应用中设置虚拟目录
二、在虚拟目录下放一个文件web.config,内容如下:
<?xml version="1.0"?> <configuration> <system.webServer> <handlers> <clear /> <add name="StaticFile" path="*" verb="*" modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule" resourceType="Either" requireAccess="Read" /> </handlers> </system.webServer> </configuration>
在Azure WebApp中部署Django应用全文参考:https://blogs.msdn.microsoft.com/azureossds/2017/09/01/django-app-with-httpplatformhandler-in-azure-app-services-windows/
宋兴柱:转载内容,请标明出处,谢谢!源文来自 宝贝云知识分享:https://www.dearcloud.cn