- 论坛徽章:
- 0
|
郁闷的ErrorDocument,指定了错误文件却不能实现
http://weblog.dalouis.com/archives/2004/08/errordocument_e.html
Errordocument 设置后不能实行设定值的问题
Posted by kreny at August 18, 2004 07:07 PM | Trackback URL: http://weblog.dalouis.com/cgi-bin/mt-tb.cgi/121
在apache的httpd.conf里面设定了我们自己定制的error document或者forbbiden document的显示页面,但是往往在设置以后没有什么效果。今天读了apache的文档后才发现自己绕了一个远路,原来是文档大小太小(小于512字节),自动被IE忽略了。
http://httpd.apache.org/docs-2.0/mod/core.html#errordocument
Microsoft Internet Explorer (MSIE) will by default ignore server-generated error messages when they are "too small" and substitute its own "friendly" error messages. The size threshold varies depending on the type of error, but in general, if you make your error document greater than 512 bytes, then MSIE will show the server-generated error rather than masking it. More information is available in Microsoft Knowledge Base article Q294807. |
|