Mercurial > hg > nginx-site
diff xml/ru/docs/http/ngx_http_limit_req_module.xml @ 351:a4fa80755eab
Consistently strip initial offset in examples.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 24 Jan 2012 11:01:22 +0000 |
parents | 4c6d2c614d2c |
children | bb51d3e17dd0 |
line wrap: on
line diff
--- a/xml/ru/docs/http/ngx_http_limit_req_module.xml Tue Jan 24 10:15:25 2012 +0000 +++ b/xml/ru/docs/http/ngx_http_limit_req_module.xml Tue Jan 24 11:01:22 2012 +0000 @@ -65,11 +65,10 @@ <example> limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s; - server { - location /search/ { - limit_req zone=one burst=5; - } - +server { + location /search/ { + limit_req zone=one burst=5; + } </example> позволяют в среднем не более 1 запроса в секунду со всплесками не более 5 запросов. @@ -79,7 +78,7 @@ Если же избыточные запросы в пределах лимита всплесков задерживать не требуется, то следует использовать параметр <literal>nodelay</literal>: <example> - limit_req zone=one burst=5 nodelay; +limit_req zone=one burst=5 nodelay; </example> </para>