diff xml/en/docs/http/ngx_http_limit_req_module.xml @ 1320:f15a983cac66

Limit conn/req: key is no longer limited to only one variable.
author Ruslan Ermilov <ru@nginx.com>
date Wed, 01 Oct 2014 21:56:23 +0400
parents ac131944d349
children 7945dac7ad47
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_limit_req_module.xml	Tue Sep 30 17:54:30 2014 +0400
+++ b/xml/en/docs/http/ngx_http_limit_req_module.xml	Wed Oct 01 21:56:23 2014 +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="3">
+        rev="4">
 
 <section id="summary">
 
@@ -136,7 +136,7 @@
 
 <directive name="limit_req_zone">
 <syntax>
-    <value>$variable</value>
+    <value>key</value>
     <literal>zone</literal>=<value>name</value>:<value>size</value>
     <literal>rate</literal>=<value>rate</value></syntax>
 <default/>
@@ -146,8 +146,11 @@
 Sets parameters for a shared memory zone
 that will keep states for various keys.
 In particular, the state stores the current number of excessive requests.
-The key is any non-empty value of the specified variable
-(empty values are not accounted).
+The <value>key</value> can contain text, variables, and their combination.
+Requests with an empty key value are not accounted.
+<note>
+Prior to version 1.7.6, a <value>key</value> could contain exactly one variable.
+</note>
 Usage example:
 <example>
 limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;