Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ngx http limit req module и реально е применение
- To: nginx-ru@xxxxxxxxx
- Subject: Re: ngx http limit req module и реально е применение
- From: "vagner" <nginx-forum@xxxxxxxx>
- Date: Sun, 17 Jul 2011 14:05:49 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:References:In-Reply-To:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=K+lEzx2M4bpDoFw7YRQ4crW9VuRG3YM1NBC646+dBOk=; b=BZBXcdfOLyK3g+Ltf2XG9LicqIcV7BAJHMMjkTyJ6BpDrkJ5ppMviRAe+i0BmGIgrrKLQH5c2xZ92ftdKdwgk3ovxbt+DYSGtPsaCAzokjn8qik+9YgdM25h160segCX;
- In-reply-to: <20110717173959.GK1137@xxxxxxxxxx>
- References: <20110717173959.GK1137@xxxxxxxxxx>
Спасибо огромное:) А подскажите еще,
могу ли я организовать блек и вайт
списки вот таким путем:
geo $white{
default 1;
include /etc/white;
}
geo $black{
default 1;
include /etc/black;
}
if ($while){
set $limit_req_zone $binary_remote_addr zone=beta:10m rate=1000r/s;;
}
if ($black){
set $limit_req_zone $binary_remote_addr zone=beta:10m rate=1r/s;;
}
#### end cfg
# cat white.txt
8.8.8.8 0;
4.4.4.4 0;
# cat black.txt
207.46.197.32 0;
207.46.232.182 0;
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,212493,212497#msg-212497
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|