NginxHttpAuthBasicModule authentication configuration auth_basic

Source: Internet
Author: User
NginxHttpAuthBasicModule auth_basichttp: // Configure (3). IfApacheisinstalled, youcan...
Nginx HttpAuthBasicModule authentication configuration auth_basic http://wiki.nginx.org/HttpAuthBasicModule 1. first generate the password Passwords must be encoded by function crypt (3 ). if Apache is installed, you can create the password file using the htpasswd program encoded ded. crypt () functions are available in php and perl, with the same salt value as input. 2. add location/{auth_basic "Restricted"; auth_basic_user_file htpasswd to the configuration file www.2cto.com nginx. conf. ensure that the file htpasswd can be found. Save it to the/usr/local/nginx/conf/htpasswd text file, which records the username: Encrypted password 3. reload nginx author stallman

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.