如何在IIS Express配置中设置允许父路径

Bri*_*ght 26 configuration iis-express

我假设这可以在applicationhost.config文件中,但我没有看到父路径设置.

如何允许在IIS Express下运行的特定站点的父路径?

Fla*_*per 46

浏览到C:\ Documents and Settings\$您的用户名$\My Documents\IISExpress\config

打开applicationHost.config

找到该<system.webServer>部分

将该<asp>部分更改为以下内容...默认情况下,它只有缓存和空限制位,但您可以随意调整任何不需要的参数.

<asp 
     enableParentPaths="true" 
     bufferingOn="true" 
     errorsToNTLog="true" 
     appAllowDebugging="true" 
     appAllowClientDebug="true" 
     scriptErrorSentToBrowser="true">

     <session allowSessionState="true" />
     <cache diskTemplateCacheDirectory="%TEMP%\iisexpress\ASP Compiled Templates" />
     <limits />
</asp>
Run Code Online (Sandbox Code Playgroud)

保存并重新启动iis express.