On Fri, Aug 17, 2012 at 10:25 AM, nik600 <nik...@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