//在nginx目录下生成密码用户名文件
htpasswd -c passwd.db username
//修改nginx的配置文件 xxx.conf
auth_basic "Restricted";
auth_basic_user_file /usr/local/etc/nginx/password.db;
//平滑重启nginx服务
$ sudo nginx -s reload
搭个在线协作工具:Peerloom
Peerloom:搭个在线协作室 十一假期,给自己折腾了一个在线协作工 阅读更多
0 条评论