httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: [users@httpd] Conditional behavior by status code
Date Wed, 04 Nov 2009 21:23:42 GMT

>> Is there any way to get Apache to behave differently based on the
>> status code, specifically apply different OutputFilters? This is

With httpd-2.3/2.4, just make that a condition for FilterProvider.

With 2.2, condition evaluation is more limited so you can't do that.
It would be a fairly trivial hack to mod_filter, or you could make
the check within your filter itself.

>   If you want to serve a different page depending upon the status, there is
> the ErrorDocument directive.

That's fine if it is an errordocument coming from the server itself,
but not useful if it's from some application.

-- 
Nick Kew

---------------------------------------------------------------------
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