你的位置:首页 > ASP.net教程

[ASP.net教程]设置IIS允许下载.config文件


<?

<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>