摘要: 在 nginx.conf 文件中对应的 server 段中 添加 location ^~ /test/ { auth_basic TEST-Login; auth_basic_user_file /root/htpasswd; 再在 root 的主目录中 /root/ 创建一个新文件 htpasswd 此文件的书写格式是 用户名:密码 每行一个账户 并... 阅读全文
posted @ 2016-07-03 16:06 ylong52 阅读(1751) 评论(0) 推荐(0) 编辑