Syntax: Auth_basic [Text|off] Default value: Auth_basic off Working with fields: HTTP, server, location, limit_except Variables: None The instruction contains an HTTP Basic authentication with the test username and password, and the specified parameters are used for the authentication domain. If the value is set to off, the actions inherited by the subordinate instruction are ignored.
Auth_basic_user_file
Syntax: Auth_basic_user_file the_file Default value: No Working with fields: HTTP, server, location, limit_except Variables: None directive specifies the password file for the authentication domain, after 0.6.7 The file specified here is the relative path of the nginx.conf directory, not the path specified by –prefix. This file format is as follows:
User:passuser2:pass2:commentuser3:pass3
If Apache is not installed, the password field must be crypt (3) function encryption, if you have Apache installed, you can use Apache HTPASSWD program to generate a password, note: Apache use MD5 encryption.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.