title: nginx: auth_basic for everything except a specific location
body: <p>How can I enable HTTP Basic Auth for everything <em>except</em> for a certain file?</p>
  
  <p>Here is my current server block configuration for the location:</p>
  
  <pre><code>location / {
         auth_basic "The password, you must enter.";
         auth_basic_user_file /etc/nginx/htpasswd;
  }
  
  location /README {
         auth_basic off;
  }
  </code></pre>
  
  <p>However, on <code>/README</code>, it is still prompting for a password.</p>
  
  <p>How can we fix this?</p>
  
  <p>Thanks!
  Mark</p>