[ 当前位置: 首页 - nginx - 正文 ] nginx 加密控制访问 Ivan 发表于 2020-01-13 location / { index index.php; auth_basic "hello!"; auth_basic_user_file /etc/nginx/conf.d/keys_for_auth; }keys_for_auth是个文件,包含了用户名和密码