首页 > 学院 > 开发设计 > 正文

设置IIS允许下载.config文件

2019-11-14 14:33:37
字体:
来源:转载
供稿:网友

<?xml version="1.0" encoding="UTF-8"?>

<configuration>

<system.webServer>
        <security>
            <requestFiltering>
                <fileExtensions>
                    <remove fileExtension=".config" />
                    <add fileExtension=".pdb" allowed="true" />
                    <add fileExtension=".config" allowed="true" />
                </fileExtensions>
            </requestFiltering>
        </security>
        <staticContent>
            <mimeMap fileExtension=".pdb" mimeType="application/octet-stream" />
        </staticContent>
    </system.webServer>

</configuration>   


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表