欢迎来到我的的博客园,祝大家学有所成,早点实现自己的人生理想。

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/

 

posted @ 2018-02-05 18:19  宋兴柱  阅读(888)  评论(0编辑  收藏  举报