您的位置:首页 > 编程语言 > Go语言

Azure Web应用中设置静态虚拟目录的方法(比如部署Django需要用到)

2018-02-05 18:19 591 查看
一、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/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: