title: How to override global auth_basic in nginx
body: <p>I have a situation wherein we have set <code>auth_basic</code> in global level for all non live sites. Is it possible in Nginx to override this <code>auth_basic</code> in site specific file and apply <code>auth_basic</code> for site-specific path with new authentication password.</p>
  
  <p><code>auth_basic</code> in global level is set on <code>/etc/nginx/conf.d/auth.conf</code></p>
  
  <p>site-specific configuration lies on <code>/etc/nginx/sites-enabled/sitename.conf</code></p>
  
  <p>in nginx.conf I have:</p>
  
  <pre><code>  include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;
  </code></pre>