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: forward request with proxy_http in custom module
Date Fri, 17 Aug 2012 14:32:47 GMT
On Fri, Aug 17, 2012 at 10:25 AM, nik600 <nik600@gmail.com> wrote:
> Dear all
>
> i'm trying to code a custom module that will implement some logic this
> is the concept of the module:
>
> *********************************
>
> /*
> * some stuff...
> */
> if(condition){
>
> /*return a custom result*/
>
> return OK;
>
> }else{
> /*forward the request to another server*/
>
>             r->filename = "proxy:http://www.google.it/";
>             r->proxyreq = PROXYREQ_PROXY;
>             r->handler  = "proxy-server";
>
> return OK;
> }

You should probably do his in an earlier phase. In a handler, you
couldn't return OK and still expect the proxy to run right?

See how mod_rewrite does it in translate_name/fixups

Mime
View raw message