February 2018
Beginner to intermediate
348 pages
9h 40m
English
The auth_basic module enables the basic authentication functionality. With the two directives that it brings forth, you can make it so that a specific location of your website (or your server) is restricted to users that authenticate with a username and password:
location /admin/ {
auth_basic "Admin control panel"; # variables are supported
auth_basic_user_file access/password_file;
}
The first directive, auth_basic, can be set to either off or a text message, usually referred to as authentication challenge or authentication realm. This message is displayed by web browsers in a username/password box when a client attempts to access the protected resource.
The second one, auth_basic_user_file, defines the path of the password ...
Read now
Unlock full access