标题:nginx 加密控制访问

发表于

location / {
index index.php;
auth_basic "hello!";
auth_basic_user_file /etc/nginx/conf.d/keys_for_auth;
}

keys_for_auth是个文件,包含了用户名和密码