默认编译进nginx
通过--without-http_auth_basic_module禁用功能
功能:基于HTTP Basic Authentication协议进行用户名密码的认证。
1.auth_basic指令
auth_basic string|off
默认:auth_basic off;
放置位置:http,server,location,limit_except
2.auth_basic_user_file 指令
auth_basic_user_file file;
默认:空;
放置位置:http,server,location,limit_except
依赖工具包:httpd-tools
htpasswd -c file -b user password