Hi Graham, On Wed, Apr 27, 2011 at 07:44:05PM +0200, Graham Leggett wrote: > 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?
I want the subrequest to replace the main request. Regards, Micha