web.config自定义404页面返回空白文件

时间:2015-07-18 20:28:07

标签: iis http-error

我在目录/ websites /.

中有这个web.config
<response type="SUCCESS" msg="Container Container1 successfully called.">
    <results><execution-results>
    <result identifier="TestReord">
    <com.drools.poc.TestRecord>
    <integerValue>10</integerValue>
    <testRecordId>10</testRecordId>
    </com.drools.poc.TestRecord>
    </result>
    <fact-handle identifier="TestReord" external form="0:29:1697585638:1697585638:29:DEFAULT:NON_TRAIT"/>
    </execution-results></results>
</response> 

/ websites / __ web-errors / 404.html

中也有此文件
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
      <httpErrors errorMode="Custom" defaultResponseMode="ExecuteURL">  
            <clear/>
           <error statusCode="404" path="/__web-errors/404.html" responseMode="ExecuteURL" />                
           </httpErrors>
      <rewrite>
        <rules>
            <remove name="wordpress" />
        </rules>
      </rewrite>
  </system.webServer>
</configuration>

但是,它显示一个空白页面。这是否有原因,如何阻止它?

0 个答案:

没有答案