title: Rewrite Rule in Nginx to Block a Specific URL
body: <p>I would like to block a specific URL from being access and return a 444 Error.</p>
  
  <p>Example:</p>
  
  <pre><code>if ( $request_uri ~ https://subdomain.domain.com/abc/xyzdirector/login.do ) {
  return    444;
  }
  </code></pre>
  
  <p>Now this works fine, the issue is if I type the following URL in my browser and change ANY of the capitalization in the sub-directories, it does not work:</p>
  
  <p>Example:</p>
  
  <pre><code>https://subdomain.domain.com/ABC/xyzdirector/login.d
  https://subdomain.domain.com/abc/XYZdirector/login.d
  https://subdomain.domain.com/abc/xyzdirecTOR/login.d
  https://subdomain.domain.com/Abc/XyzDirector/login.d
  </code></pre>
  
  <p>When I do this, the url gets forwarded and servered.</p>
  
  <p>How do I block this?</p>