Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ограничить location uri+агрум енты через limit req
- To: nginx-ru@xxxxxxxxx
- Subject: Re: Ограничить location uri+агрум енты через limit req
- From: "igor.goncharenko" <nginx-forum@xxxxxxxx>
- Date: Fri, 05 Nov 2010 10:16:01 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Sender:From:References:In-Reply-To:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To:Date; bh=THTLv1bCdQOSiN8RI08qgJnwB7+grKjJeGh9y63HLDQ=; b=LBXh/wDG/jgrAfIlaeACpGxmumWhoV82XPoHVzLHlUr1p6K2ep3wETSxSmHB+szSFvCvXVc3tQsCQQ7mbA/lBXXjbowPxw8u3plrTLK1QkIUc4bxlEhUWWFJi7ufL3Mb;
- In-reply-to: <20101104094903.GJ44164@xxxxxxxxxx>
- References: <20101104094903.GJ44164@xxxxxxxxxx>
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@xxxxxxxxx
> http://nginx.org/mailman/listinfo/nginx-ru
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,146829,147990#msg-147990
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|