On Thu, Jul 7, 2011 at 02:56, Jodi Bosa <jodib...@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.