Welcome! Log In Create A New Profile

Advanced

Re: Ограничить location uri+агрументы через limit req

November 05, 2010 10:16AM
Maxim Dounin Wrote:
-------------------------------------------------------
> Hello!
>
> On Thu, Nov 04, 2010 at 03:48:45AM -0400,
> igor.goncharenko wrote:
>
> > Вот такой вариант
> заработал:
> >
> > location /
> > {
> > proxy_pass http://test.loc;
> > error_page 418 = @limit;
> > if ($args ~*
> command=test_command&PHPSESSID=.*) { return 418; }
> > }
> >
> > location @limit {
> > limit_req zone=test1 burst=5 nodelay;
> > }
>
> В location @limit тоже, очевидно,
> нужен proxy_pass.

Точно! Спасибо, теперь работает правильно.

>
> Maxim Dounin
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@nginx.org
> http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

Re: Ограничить location uri+агрументы через limit req

Лазовский Вадим November 02, 2010 05:54AM

Re: Ограничить location uri+агрументы через limit req

igor.goncharenko November 02, 2010 10:32AM

Re: Ограничить location uri+агрументы через limit req

igor.goncharenko November 04, 2010 03:48AM

Re: Ограничить location uri+агрументы через limit req

Maxim Dounin November 04, 2010 05:50AM

Re: Ограничить location uri+агрументы через limit req

igor.goncharenko November 05, 2010 10:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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