DelphiFAQ Home Search:

ErrorDocument directive seems to be ignored


comments7 comments. Current rating: 3 stars (3 votes). Leave comments and/ or rate it.


In an implementation of an ACL, I've set up my custom error handling document in Apache's configuration file. The handler is actually a perl script which inspects the requested URL and then redirects to an appropriate other URL. (A customer who didn't pay for report


shall be redirected to


And so on. It works fine in Konqueror but Internet Explorer just displays its stupid You are not authorized to view this page page.


You've done everything as you should on the server side because obviously other browsers get the redirect. The reason for IE's behaviour is that with version 5, Microsoft decided that unless the custom handler returns at least 512 bytes of status document, the browser will rather display its default message.

Microsoft calls this a feature (which a user cannot disable): MSIE 5 'may' replace a site's own error messages with its in-built error pages. This occurs if the error page from the site is less than a particular size.

For most errors, this is 512 bytes. If the error page from the site is more than 512 bytes, MSIE 5 will display the site's error message, otherwise it will not display it.

For a few statuses (403, 405 and 410), the cut-off size is 256. The solution to this problem is to ensure that all error pages are greater than 512 bytes.


The solution is that you add a bunch of hidden text (white text on white background) at the end of your document. A great place to add some keywords for the search engines :-)


2012-06-05, 21:35:53
anonymous from China  
<strong> http://www.coachout..strong> <a href=' http://www.coachout..g>Coach Outlet Online</strong></a><br />
<strong> http://www.coachfac..strong> <a href=' http://www.coachfac..g>Coach Factory</strong></a><br />
<strong> http://www.myloveco..strong> <a href=' http://www.myloveco..g>Coach Outlet Online</strong></a><br />
<strong> http://www.buyincoa..strong> <a href=' http://www.buyincoa..g>Coach Outlet</strong></a><br />
<strong> http://www.cheapcoa..strong> <a href=' http://www.cheapcoa..g>Cheap Coach Handbags</strong></a><br />
<strong> http://www.coachfac..strong> <a href=' http://www.coachfac..g>Coach Factory Outlet</strong></a><br />
<strong> http://www.buycoach..strong> <a href=' http://www.buycoach..g>Coach Outlet Online</strong></a><br />
<strong></strong> <a href=' http://www.coachout..g>Coach Factory Outlet</strong></a><br />
<strong></strong> <a href=' http://www.coachout..g>Coach Outlet Online</strong></a><br />
<strong></strong> <a href=' http://www.coachfac..g>Coach Factory</strong></a><br />
<strong></strong> <a href=' http://www.gotocoac..g>Coach Outlet Online</strong></a><br />
2012-06-18, 21:44:47
anonymous from Colombia  
One alleged victim would routinely throw away his underwear to hide [url=]Louis Vuitton Bags[/url] the supposed abuse. Week two of the trial began with a final prosecution witness. The mother of Victim No. 9 took the [url=]Chanel Purses[/url] stand Monday to detail her son’s cover-up of the alleged sordid acts he suffered at Sandusky’s hands. “I [url= http://www.guccibel..rg/]Hermes Belts[/url] always wondered why he never had any underwear in the laundry,” she testified. “He just told me he had an [url=]Mens Belts[/url] accident and he threw them out.” Indeed, she testified that he started becoming “sick” more often after [url=]Gucci Belts[/url] spending time with the ex-Penn State coach. Victim No. 9 supposedly slept over at the Sandusky residence more than 100 times.Victim No. 9 testified [url=]Louis Vuitton Handbags[/url] last Thursday that he screamed during one episode of alleged abuse, hoping that [url=]Louis Vuitton Belts[/url] Sandusky’s wife, who he said was always upstairs, would hear. “I think the basement is soundproof,” he said [url=]Chanel Handbags[/url] tearfully, noting that Sandusky’s wife Dottie never did come down.Lead defense attorney Joe Amendola has also [url=]Chanel Handbag[/url] suggested previously that the accusers and the Attorney General’s office might be colluding. Lead prosecutor Joe [url=]Louis Vuitton Purses[/url] McGettigan has often queried the alleged victims while on the stand: “Have I ever, ever, ever told you what to say?” which they’ve answered with resounding denials. But it could be a larger issue for Kline and the other subpoenaed attorneys to defend themselves against a [url=]Louis Vuitton Purse[/url]
charge of violating the gag order issued by Judge Cleland, which bars any representative from either side from discussing the case with the media.

2012-09-14, 03:46:18
anonymous from Korea (R)  
2012-11-12, 03:40:21
coach001 from United Kingdom  
2013-02-04, 07:44:37
jbqhpc <a href=' '>quick quid</a> %-[[[ <a href=' '>payday loans online</a> DMEsC <a href=' '>payday loans online</a> %-[[[
2014-04-10, 07:38:00
anonymous from Lebanon  
you are a genius man!! ive been searching for that for hours!!! and actually this is still used in IE9! Thanks a lot!!
2017-05-14, 20:56:33
Jett from Taipei, Taiwan  
I just like the helpful info you provide for your articles.
I will bookmark your weblog and take a look at once more right here regularly.
I am quite sure I will be informed lots of new stuff proper here!
Good luck for the following!



NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: