kas*_*tru 6 iis umbraco http-status-code-404
我安装了Umbraco 4.5,运行正常.有一件事我不能去工作,是404.当它点击一个不感兴趣的页面时,它显示默认的IIS7 404页面,而不是内置的umbraco 404页面.
所以我认为这是我必须改变的一个环境 - 但是哪个?
And*_*son 11
复制自http://our.umbraco.org/forum/using/ui-questions/8244-IIS7--404:
基本上,你需要添加
<location path="Site Description">
<system.webServer>
<httpErrors existingResponse="PassThrough" />
</system.webServer>
</location>
Run Code Online (Sandbox Code Playgroud)
到您的applicationHost.config文件,其中"站点描述"是IIS7中站点的名称.
applicationHost.config文件位于:system32\inetsrv\config
编辑:
如评论中所述,如果这个答案,您应该在web.config中添加此部分而不是更好,您应该始终避免在您自己的应用程序之外更改可能影响其他应用程序的配置文件.
| 归档时间: |
|
| 查看次数: |
6570 次 |
| 最近记录: |