Re: forward request with proxy_http in custom module

2012-08-17 Thread nik600
Ok, it wasn't clear to me to return DECLINED to look for other handlers, and also wasn't clear the possibility to specify an order. Now it works, thanks. On Fri, Aug 17, 2012 at 4:42 PM, Sorin Manolache wrote: > On 2012-08-17 16:25, nik600 wrote: >> >> Dear all >> >> i'm trying to code a custom

Re: forward request with proxy_http in custom module

2012-08-17 Thread Sorin Manolache
On 2012-08-17 16:25, nik600 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 anoth

Re: forward request with proxy_http in custom module

2012-08-17 Thread Eric Covener
On Fri, Aug 17, 2012 at 10:25 AM, nik600 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; >

forward request with proxy_http in custom module

2012-08-17 Thread nik600
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