httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Delegating to confiured error page from within a filter
Date Mon, 11 Feb 2013 22:26:05 GMT
On Mon, Feb 11, 2013 at 10:26:41PM +0100, wrote:
> Dear collected list wisdom,
> I think I'm hitting a wall here: my  module's filter needs to replace
> the running request with the configured error page  for that error 
> (all in the 4xx range). The error is detected before any content is
> pushed down the bucket line. Setting the request's status will produce
> the correct HTTP status line but (of course?) it won't send the error
> document as configured in the server's configuration.
> Any ideas? 

Answering my own question:  ap_send_error_response(filter->r, 0) seems
to work just fine (but feels slightly wrong ;-)

 Cheers, RalfD

> TIA Ralf Mattes

View raw message