diff 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
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_limit_req_module.xml	Tue Jan 24 10:15:25 2012 +0000
+++ b/xml/en/docs/http/ngx_http_limit_req_module.xml	Tue Jan 24 11:01:22 2012 +0000
@@ -67,11 +67,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>
 allow not more than 1 request per second at an average,
 with bursts not exceeding 5 requests.
@@ -81,7 +80,7 @@
 If delaying of excessive requests while requests are being limited is not
 desired, the parameter <literal>nodelay</literal> should be used:
 <example>
-            limit_req zone=one burst=5 nodelay;
+limit_req zone=one burst=5 nodelay;
 </example>
 </para>