nginx module dev question

Delta Yeh delta.yeh at gmail.com
Fri Apr 3 16:10:16 MSD 2009


Thanks for your suggestion.


2009/4/3 Yu.Cheung <nkcheungyu at gmail.com>

> I think you can write an upstream module to resolve it.
>
> use the HEAD you get, to make a request, send the new request to the
> upstream you want to sent, get the response, check it,
>
> and then you can use ngx_http_internal_redirect() function to redirect
> the origin request to another upstream you defined.
>
> just do it, good luck!
>
>
>
> 2009/3/25 Delta Yeh <delta.yeh at gmail.com>:
> > Hi all,
> >   I want to implement the following feature:
> >  1. client HEAD request arrive , my module send it to an upstream.
> >  2. the upstream return response.
> >  3. my module check the response, if it is not the data I want, send the
> > origin request to another upstream
> >
> >  I know the block mode will work. I want to know if there is asynchronous
> > mode which will fit into nginx better?
> >
> > BR,
> > DeltaY
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090403/e93413d6/attachment.html>


More information about the nginx mailing list