在server中添加如下图所示:
auth_basic “Password”;
auth_basic_user_file /usr/local/app/nginx/conf/vhosts/htpasswd;
autoindex on; 继续阅读
在server中添加如下图所示:
auth_basic “Password”;
auth_basic_user_file /usr/local/app/nginx/conf/vhosts/htpasswd;
autoindex on; 继续阅读
cd /var/log/nginx
scp 10.173.12.18:/var/log/nginx/ld.log-20150407.gz /tmp 继续阅读