Mercurial > hg > nginx-site
comparison xml/en/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 | b33d3f3cd8ca |
children | bef9e1a2e3c8 |
comparison
equal
deleted
inserted
replaced
350:55c1c4a1748f | 351:a4fa80755eab |
---|---|
65 By default, the number of bursts is equal to zero. | 65 By default, the number of bursts is equal to zero. |
66 For example, the directives | 66 For example, the directives |
67 <example> | 67 <example> |
68 limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s; | 68 limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s; |
69 | 69 |
70 server { | 70 server { |
71 location /search/ { | 71 location /search/ { |
72 limit_req zone=one burst=5; | 72 limit_req zone=one burst=5; |
73 } | 73 } |
74 | |
75 </example> | 74 </example> |
76 allow not more than 1 request per second at an average, | 75 allow not more than 1 request per second at an average, |
77 with bursts not exceeding 5 requests. | 76 with bursts not exceeding 5 requests. |
78 </para> | 77 </para> |
79 | 78 |
80 <para> | 79 <para> |
81 If delaying of excessive requests while requests are being limited is not | 80 If delaying of excessive requests while requests are being limited is not |
82 desired, the parameter <literal>nodelay</literal> should be used: | 81 desired, the parameter <literal>nodelay</literal> should be used: |
83 <example> | 82 <example> |
84 limit_req zone=one burst=5 nodelay; | 83 limit_req zone=one burst=5 nodelay; |
85 </example> | 84 </example> |
86 </para> | 85 </para> |
87 | 86 |
88 </directive> | 87 </directive> |
89 | 88 |