httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dennis Jacobfeuerborn <denni...@conversis.de>
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 
basically:

ErrorDocument 404 /_errors/404.html

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

Regards,
   Dennis

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message