Welcome! Log In Create A New Profile

Advanced

Re: How to use cookie for request/conection limiting

Maxim Dounin
November 01, 2009 06:22AM
Hello!

On Sat, Oct 31, 2009 at 06:27:21PM -0400, piavlo wrote:

> Maxim Dounin Wrote:
> -------------------------------------------------------
> > > Great, but it's pity I could not find it in
> > documentation ( and I was reading the Russian one
> > - which is supposed to be most comprehensive).
> >
> > Well, probably you should try again. If you still
> > unable to, here is most
> > close links:
> >
> > http://wiki.nginx.org/NginxHttpCoreModule#.24cooki
> > e_COOKIE
> > http://sysoev.ru/nginx/docs/http/ngx_http_core_mod
> > ule.html#variables
> >
> Indeed i overlooked it.
>
> It is not clear to me if i any nginx builtin variable is accessible inside any module directive (which uses variables).
> I mean there are several phases in HTTP request processing (like I saw here http://catap.ru/blog/2009/05/27/nginx-phases-of-handling-http-request/) - and it's not clear to me at which phase the $cookie_name is generated (or any other variable) and whether it's generated after or before the limit_req_zone/limit_zone directives are processes?

Variable $cookie_name is available as soon as nginx has Cookie
header from client. It happens before request processing phases.

Maxim Dounin
Subject Author Posted

How to use cookie for request/conection limiting

piavlo October 29, 2009 08:20PM

Re: How to use cookie for request/conection limiting

Igor Sysoev October 30, 2009 02:38AM

Re: How to use cookie for request/conection limiting

piavlo October 30, 2009 06:24PM

Re: How to use cookie for request/conection limiting

Maxim Dounin October 30, 2009 09:08PM

Re: How to use cookie for request/conection limiting

piavlo October 31, 2009 06:27PM

Re: How to use cookie for request/conection limiting

Maxim Dounin November 01, 2009 06:22AM

Re: How to use cookie for request/conection limiting

anomalizer October 30, 2009 01:26PM

Re: How to use cookie for request/conection limiting

piavlo October 30, 2009 06:21PM

Re: How to use cookie for request/conection limiting

anomalizer October 31, 2009 09:36AM

Re: How to use cookie for request/conection limiting

piavlo October 31, 2009 06:02PM

Re: How to use cookie for request/conection limiting

anomalizer November 03, 2009 01:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 303
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