title: redirecting non-exact location directive overflow to a 404 error
body: <p>In my nginx.conf file, I'm using: </p>
  
  <pre><code>location /test {
    default_type 'text/html';
    content_by_lua_file '/usr/local/nginx/html/test.lua';
  }
  </code></pre>
  
  <p>Requesting /tesABC displays a 404 error</p>
  
  <p>Requesting /testABC displays my test lua script.</p>
  
  <p>How can I modify my configuration to force an exact match on /test to let /testABC be handled by the 404 error?</p>
  
  <p>Ideally, I need <code>/test</code> and <code>/test/anything</code> to direct to <code>/test</code> as it does currently, while <code>/testAnything</code> should be picked up by the 404.</p>