Welcome! Log In Create A New Profile

Advanced

Re: nginx module dev question

April 03, 2009 08:10AM
Thanks for your suggestion.


2009/4/3 Yu.Cheung

> 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 :
> > 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
> >
>
>
Subject Author Posted

nginx module dev question

deltay March 25, 2009 05:22AM

Re: nginx module dev question

Yu.Cheung April 03, 2009 06:47AM

Re: nginx module dev question

deltay April 03, 2009 08:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 169
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready