ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: limit requests


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: limit requests
  • From: Roxis <roxis@xxxxxxx>
  • Date: Sat, 31 Mar 2007 10:19:25 +0200
  • Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:subject:date:references:in-reply-to:x-mailer:mime-version:content-type:content-transfer-encoding:content-disposition:message-id:sender; b=h3EYh0U1uoQueh3HzWLIL6SshE+6SwmMV7cjbifr2sCwumnyMtp6tFDwpFzo1OqKxKAElt/ni7EvftiIRM81WJRyZvlG33Kn4/XBKmhZ58A8SjTP7bhQ8Kcybm6MrZeC7AyvCyx1r3gzJ/CbmoP3T11D6X/e/UIvP86pzUIo1vg=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:references:in-reply-to:x-mailer:mime-version:content-type:content-transfer-encoding:content-disposition:message-id:sender; b=Hr9VUkIuMs16BjkTk89OwPs7PIP4HpbRHKskB+h2qo4NgXBQuZe3XQVnmxdwqxfqxWYRVsiNNI73LNPvltk4SgLCut3oDIhCqPgSWmFn5CLDRQZrH0vq9ufdZfrcmiQd1DGLqHbT2JGTtBmcp8vvcKhw/kBPdjavXb9rEaYO4I4=
  • In-reply-to: <20070330200243.GG19084@xxxxxxxxxxxxx>
  • References: <20070330200243.GG19084@xxxxxxxxxxxxx>

On Friday 30 March 2007, Igor Sysoev wrote:
> Есть какие-нибудь комментарии/пожелания по названиям/функциональности ?

предлагаю добавить переменные (connections, rate, bust)
и использовать их в if условиях

if ($connections > 5 and $rate > 1/s) {
  limit_rate  10k;
}


 




Copyright © Lexa Software, 1996-2009.