繁体   English   中英

IIS 7.5设置重定向错误页面,但返回http 500.22错误

[英]IIS 7.5 set redirect error page but return http 500.22 error

在IIS 7.5服务器上有两个站点,每个站点都有相同的错误页面,一个正在运行,一个则无法运行。 两者都具有相似的web.config结构,并且服务器设置没有显着差异,两个管道都通过相同的集成进行了相同的集成。 我正在谷歌上搜索并执行↓之类的操作,但这没用。 我们该如何解决呢? 下面的代码在两个站点上显示了web.config文件的相同设置。

<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules>
  <add type="te.test, Version=1.1.1.0" name="testModule" />
</modules>
<httpErrors errorMode="Custom">
        <error statusCode="404" prefixLanguageFilePath="" path="/error_page/error_test.html" responseMode="ExecuteURL" />
        <error statusCode="500" prefixLanguageFilePath="" path="/error_page/error_test.html" responseMode="ExecuteURL" />
</httpErrors>
</system.webServer>

<system.web>
<customErrors defaultRedirect="http://test.test/error_page/error_test.html" mode="On">
</customErrors>
</system.web>

问题是虚拟目录(/ error_page),我将虚拟目录配置为“应用程序”

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM