httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Noordhuis <i...@bnoordhuis.nl>
Subject Re: proxying another protocol to http/https
Date Thu, 07 Jul 2011 21:18:22 GMT
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.

Mime
View raw message