我假设这在 applicationhost.config 文件中是可能的,但我没有看到父路径设置。
您如何允许在 IIS Express 下运行的特定站点的父路径?
最佳答案
浏览到 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>
保存并重启iis express。
关于configuration - 如何在 IIS Express 配置中设置允许父路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4769751/