我正在尝试为每个重要的http错误创建一个默认错误页面,方法是将以下内容添加到web.xml文件中;
<error-page>
<exception-type>java.sql.SQLException</exception-type>
<location>/error-mantenimiento.xhtml</location>
</error-page>
<error-page>
<error-code>401</error-code>
<location>/error-mantenimiento.xhtml</location>
</error-page>
<error-page>
<error-code>403</error-code>
<location>/error-mantenimiento.xhtml</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/error-mantenimiento.xhtml</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/error-mantenimiento.xhtml</location>
</error-page>
<error-page>
<error-code>503</error-code>
<location>/error-mantenimiento.xhtml</location>
</error-page>当我尝试使用一个伪造的url,抛出http 404错误时,它在firefox或chrome上确实起作用了。但在通过IE8的IE6上,我得到“无法从本地主机下载。无法打开此因特网站点。请求的站点不可用或找不到。请稍后再试。”
我在互联网上搜索这个错误,一些人报告说已经通过启用或禁用安全选项卡上的“不将加密页面保存到磁盘”来修复它。Y尝试启用和禁用此选项,但它总是抛出相同的错误。此外,我还尝试添加或删除http头标记
就像他们在其他帖子上做的那样,但我得到了相同的IE6错误。错误页面在IE9及更高版本上不起作用。
我使用的web服务器是JBOSS 4.0.3。
据我所知,他们不想切换浏览器,这个问题将继续存在。
我们还尝试通过修改windows注册表中的以下记录
BypassHTTPNoCacheCheck doubleword 0x00000001
BypassSSLNoCacheCheck doubleword 0x00000001但是没有用..。:这方面有什么线索吗?
规则
发布于 2013-08-27 23:42:57
我遇到了同样的问题,偶然发现了你的问题。但是,在进一步研究之后,我也找到了这个问题:IE : Unable to download * from *. Unable to open this Internet site. The requested site is either unavailable or cannot be found
如果您在SSL上运行您的网站,请尝试设置以下属性的标题内容: Cache-Control: private Pragma: token
我相信您可以在web.xml文件中使用以下内容在xml中设置它:
<init-param>
<param-name>Cache-Control</param-name>
<param-value>max-age=172801, private</param-value>
</init-param>
<init-param>
<param-name>Pragma</param-name>
<param-value>token</param-value>
</init-param>虽然我对JBOSS不是很熟悉。我希望这能帮到你。
https://stackoverflow.com/questions/16106528
复制相似问题