title: nginx location block redirect regex is greedy
body: <p>I need to redirect pages below a dir but not the dir itself...</p>
  
  <pre><code>location ~* ^\/groups\/.+$ {
      return 301 /resource/;
  }
  </code></pre>
  
  <p>The rule is matched when <code>/groups/</code> is hit but it should only match when something follows eg <code>/groups/XXX</code></p>
  
  <p>Any tips would be gratefully received</p>