title: Nginx: dynamic rate limit
body: <p>is it possible to use dynamic connection limits in nginx?</p>
  
  <p>lets say i have the following routes:</p>
  
  <pre><code>/route/1
  /route/2
  ...
  /route/*
  </code></pre>
  
  <p>I do not want to have a global rate limit for /route/* but a specific for each route. Is that possible in nginx?</p>
  
  <p>So that each route have a connection limit of 2 connections in a minute.</p>
  
  <p>What i think of: everything that comes after /route/ should be act as an id. And each id has its own connection limit.</p>
  
  <p>Maybe i could be somehting like:</p>
  
  <pre><code>limit_conn_zone $request_uri zone=addr:10m;
  
  server {
      ...
      limit_conn addr 1;
  }
  </code></pre>
  
  <p>But im not sure, if this works as i expect.</p>