Aşağıdaki bağlamlarda hiçbirine ngx_http_auth_basic_module
ayarları koyabilirsiniz:
http, server, location, limit_except
Sürüm
location ~ ^/
Eğer server
bölümünde başka beyan yerleri yoksa sadece İşe yarar
örnek:
http_auth
ayarlarınızı server
bölümüne getirin ve bu server
için açıklanan tüm konumlar bu ayarları devralır.
örnek:
server {
... # some server settings
auth_basic on;
auth_basic_user_file /path/to/some/file;
location/{
# HERE http_auth settings would be
# inherited from previous configuration level.
}
}