Nginx 访问目录身份验证
假设/www/htdocs/ 为服务器根目录,新建test目录,当访问test目录时 需要身份验证1. # cd /etc/nginx/conf/htpassword2. /usr/bin/htpasswd -c /usr/local/nginx/conf/htpasswd/test auth_user3. # vi /etc/nginx/nginx.conf server{***#test location /test { auth_basic "Res...