Mercurial > hg > nginx-site
changeset 870:6087d3fa6919
The limit_req_status and limit_conn_status directives.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 20 Mar 2013 21:47:21 +0400 |
parents | ade81792bdaa |
children | 96839d165b8a |
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, 64 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_limit_conn_module.xml Wed Mar 20 15:00:06 2013 +0400 +++ b/xml/en/docs/http/ngx_http_limit_conn_module.xml Wed Mar 20 21:47:21 2013 +0400 @@ -10,7 +10,7 @@ <module name="Module ngx_http_limit_conn_module" link="/en/docs/http/ngx_http_limit_conn_module.html" lang="en" - rev="1"> + rev="2"> <section id="summary"> @@ -127,6 +127,21 @@ </directive> +<directive name="limit_conn_status"> +<syntax><value>code</value></syntax> +<default>503</default> +<context>http</context> +<context>server</context> +<context>location</context> +<appeared-in>1.3.15</appeared-in> + +<para> +Sets status code to be used when requests are rejected. +</para> + +</directive> + + <directive name="limit_conn_zone"> <syntax> <value>$variable</value>
--- a/xml/en/docs/http/ngx_http_limit_req_module.xml Wed Mar 20 15:00:06 2013 +0400 +++ b/xml/en/docs/http/ngx_http_limit_req_module.xml Wed Mar 20 21:47:21 2013 +0400 @@ -10,7 +10,7 @@ <module name="Module ngx_http_limit_req_module" link="/en/docs/http/ngx_http_limit_req_module.html" lang="en" - rev="2"> + rev="3"> <section id="summary"> @@ -119,6 +119,21 @@ </directive> +<directive name="limit_req_status"> +<syntax><value>code</value></syntax> +<default>503</default> +<context>http</context> +<context>server</context> +<context>location</context> +<appeared-in>1.3.15</appeared-in> + +<para> +Sets status code to be used when requests are rejected. +</para> + +</directive> + + <directive name="limit_req_zone"> <syntax> <value>$variable</value>
--- a/xml/ru/docs/http/ngx_http_limit_conn_module.xml Wed Mar 20 15:00:06 2013 +0400 +++ b/xml/ru/docs/http/ngx_http_limit_conn_module.xml Wed Mar 20 21:47:21 2013 +0400 @@ -10,7 +10,7 @@ <module name="Модуль ngx_http_limit_conn_module" link="/ru/docs/http/ngx_http_limit_conn_module.html" lang="ru" - rev="1"> + rev="2"> <section id="summary"> @@ -125,6 +125,21 @@ </directive> +<directive name="limit_conn_status"> +<syntax><value>код</value></syntax> +<default>503</default> +<context>http</context> +<context>server</context> +<context>location</context> +<appeared-in>1.3.15</appeared-in> + +<para> +Позволяет переопределить код ответа, используемый при отклонении запросов. +</para> + +</directive> + + <directive name="limit_conn_zone"> <syntax> <value>$переменная</value>
--- a/xml/ru/docs/http/ngx_http_limit_req_module.xml Wed Mar 20 15:00:06 2013 +0400 +++ b/xml/ru/docs/http/ngx_http_limit_req_module.xml Wed Mar 20 21:47:21 2013 +0400 @@ -10,7 +10,7 @@ <module name="Модуль ngx_http_limit_req_module" link="/ru/docs/http/ngx_http_limit_req_module.html" lang="ru" - rev="2"> + rev="3"> <section id="summary"> @@ -118,6 +118,21 @@ </directive> +<directive name="limit_req_status"> +<syntax><value>код</value></syntax> +<default>503</default> +<context>http</context> +<context>server</context> +<context>location</context> +<appeared-in>1.3.15</appeared-in> + +<para> +Позволяет переопределить код ответа, используемый при отклонении запросов. +</para> + +</directive> + + <directive name="limit_req_zone"> <syntax> <value>$переменная</value>