I have a situation where we installed auth_basic on a global level for all inactive sites. Is it possible in Nginx to override this auth_basic in the site file and apply auth_basic to the site path with a new authentication password.
auth_basic is installed globally at /etc/nginx/conf.d/auth.conf
Site configuration depends on /etc/nginx/sites-enabled/sitename.conf
in nginx.conf I have:
include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*;
source share