----- Original Message -----
From: "karim Bendadda" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, March 18, 2008 8:16 PM
Subject: Re: ap_internal_redirect
Hi,
Try using the *mod_proxy* to do this . Something like that:
On your module: *ap_internal_redirect("/Test",The request);*
And on your configuration file: *ProxyPass /Test @ExternalServer*
that redirects your internal request to an external server...
On Tue, Mar 18, 2008 at 3:36 PM, Pitchaimani Muthuveeran <
[EMAIL PROTECTED]> wrote:
Hi Nick,
I just want to redirect an internal request to an external server by
replacing the incoming host-name to the real external server host name.
I do also want to process the response via the chain ....
DEFLATE->MY_FILTER--->INFLATE.
Since mod_deflate skips the filter process after identifying that the
request is not main request. This stops me in processing the response
from
MY_FILTER.
Thanks,
Mani
----- Original Message -----
From: "Nick Kew" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, March 18, 2008 7:50 PM
Subject: Re: ap_internal_redirect
> On Tue, 18 Mar 2008 19:45:06 +0530
> "Pitchaimani Muthuveeran" <[EMAIL PROTECTED]> wrote:
>
>> How could i redirect the request and mark it as initial request?
>
> You don't. But if you tell us why you think you want to,
> then maybe an alternative will present itself.
>
> --
> Nick Kew
>
> Application Development with Apache - the Apache Modules Book
> http://www.apachetutor.org/
>
--
Karim
Hi Karim,
I need to redirect to the incoming requests to an external server
dynamically(The logic for deciding the external server is present in the
third-party external application- based on the arguments present in the
incoming requests).
I guess static redirect won't work here.
I am parsing the request in post_read_request, to collect the arguments and
getting external-server name from the third party external application and
redirect the request to external host.
Any other suggestions!
Thanks,
Mani