httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: proxying another protocol to http/https
Date Thu, 07 Jul 2011 21:36:54 GMT
On Thu, Jul 7, 2011 at 5:18 PM, Ben Noordhuis <info@bnoordhuis.nl> wrote:
> On Thu, Jul 7, 2011 at 02:56, Jodi Bosa <jodibosa@gmail.com> wrote:
>> I would like to leverage mod_proxy and mod_proxy_http to proxy client
>> requests (from another protocol).
>> Assuming I have input & output filters that handle the other protocol with
>> the client, shouldn't I simply be able to:
>>
>>
>> Handler
>> {
>>    r->filename = apr_psprintf(r->pool, "proxy:https://%s", hostname);
>>    r->proxyreq = PROXYREQ_PROXY;
>>    return DECLINED; /* to allow mod_proxy to kick in and do it's thing */
>> }
>
> That should work if your handler runs before mod_proxy. Hook it at
> APR_HOOK_REALLY_FIRST.
>

Or do it in a different hook like translate_name --  like proxy and rewrite do.

Mime
View raw message