httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Re: How to do a sub-request from input filter?
Date Wed, 27 Apr 2011 17:44:05 GMT
On 27 Apr 2011, at 7:07 PM, Micha Lenk wrote:

> I am using Apache as a reverse proxy to forward requests to a  
> backend web
> server protected by some self-written Apache modules. Now I would  
> like to do a
> sub-request to a different location from within an input filter.
>
> What is the easiest way to achieve this? Reading Nick Kew's  
> excellent Apache
> Modules Book I've found the function ap_internal_redirect(), but  
> does this
> function also work from an input filter? Currently I doubt it  
> because the first
> line of the HTTP request for the backend web server is built very  
> early in
> ap_proxy_http_request(), apparently before running the input  
> filters...
> Do you have any better suggestion?
>
> What else should I keep in mind in this situation?

It depends, do you want the subrequest to replace the main request? Or  
do you want the subrequest to happen, and then for the main request to  
continue as it was before?

Regards,
Graham
--


Mime
View raw message