Directive reference
auth_basic
Protects a scope with HTTP Basic authentication.
| Syntax | auth_basic string | off; |
|---|---|
| Contexts | httpserverlocationlimit_except |
| Default | auth_basic off; |
Behavior
The realm may contain variables. Credentials come from auth_basic_user_file.
Example
auth_basic "Private";
auth_basic_user_file /etc/xin/htpasswd; Related directives
auth_basic_user_file · satisfy