httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dennis Jacobfeuerborn <>
Subject Re: [users@httpd] Filters not applied with ErrorDocument pages?
Date Tue, 07 Dec 2010 22:15:18 GMT
On 12/07/2010 08:25 PM, Joost de Heer wrote:
> On Mon, December 6, 2010 02:56, Dennis Jacobfeuerborn wrote:
>> I just noticed that when I use ErrorDocument to server custom 404 pages
>> the
>> output filter I defined is not getting used anymore. Is there some special
>> configuration required to make the filters also work on custom error
>> pages?
> How do you define the error pages? I haven't tried it, but I'd guess that
> ErrorDcument 404 http://your.server/404.html will result in a new request,
> and that filters will be applied in this case.

That doesn't work because if you redirect the forces Apache to use a 30x 
status which means the 404 cannot be returned anymore. What I'm doing is 

ErrorDocument 404 /_errors/404.html

That way I can serve the error_pages with a proper 404 status.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message