Mercurial > hg > nginx-site
changeset 390:bef9e1a2e3c8
Documented the fact that empty values are not accounted in zones.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 03 Feb 2012 12:16:28 +0000 |
parents | 7a78f70f1cca |
children | 1702722eca07 |
files | xml/en/docs/http/ngx_http_limit_conn_module.xml xml/en/docs/http/ngx_http_limit_req_module.xml xml/ru/docs/http/ngx_http_limit_conn_module.xml xml/ru/docs/http/ngx_http_limit_req_module.xml |
diffstat | 4 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_limit_conn_module.xml +++ b/xml/en/docs/http/ngx_http_limit_conn_module.xml @@ -130,7 +130,8 @@ limits the number of connections. <para> Sets the parameters for a zone that keeps states for various keys. This state stores the current number of connections in particular. -The key is the value of the specified variable. +The key is any non-empty value of the specified variable +(empty values are not accounted). Example usage: <example> limit_conn_zone $binary_remote_addr zone=addr:10m;
--- a/xml/en/docs/http/ngx_http_limit_req_module.xml +++ b/xml/en/docs/http/ngx_http_limit_req_module.xml @@ -121,7 +121,8 @@ delays are logged with the <literal>info <para> Sets the parameters for a zone that keeps states for various keys. This state stores the current number of requests in particular. -The key is the value of the specified variable. +The key is any non-empty value of the specified variable +(empty values are not accounted). Example usage: <example> limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;
--- a/xml/ru/docs/http/ngx_http_limit_conn_module.xml +++ b/xml/ru/docs/http/ngx_http_limit_conn_module.xml @@ -130,7 +130,8 @@ server { Задаёт параметры зоны, которая хранит состояние для разных значений ключа. Состояние в частности хранит текущее число соединений. -Ключом является значение заданной переменной. +Ключом является любое непустое значение заданной переменной +(пустые значения не учитываются). Пример использования: <example> limit_conn_zone $binary_remote_addr zone=addr:10m;
--- a/xml/ru/docs/http/ngx_http_limit_req_module.xml +++ b/xml/ru/docs/http/ngx_http_limit_req_module.xml @@ -121,7 +121,8 @@ limit_req zone=one burst=5 nodelay; Задаёт параметры зоны, которая хранит состояние для разных значений ключа. Состояние в частности хранит текущее число запросов. -Ключом является значение заданной переменной. +Ключом является любое непустое значение заданной переменной +(пустые значения не учитываются). Пример использования: <example> limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;