全球主机交流论坛

标题: nginx指定目录加密这个用户名密码是写在哪/??? [打印本页]

作者: 每次醒来    时间: 2013-1-13 16:59
标题: nginx指定目录加密这个用户名密码是写在哪/???
  1.         location ~ ^/admin/.* {
  2.                 location ~ .*\.php?$ {
  3.                         include /usr/local/nginx/conf/fastcgi.conf;
  4.                 }
  5.                 auth_basic "admin";
  6.                 auth_basic_user_file /etc/.pmahtpasswd;
  7.         }
复制代码
nginx指定目录加密这个用户名密码是写在哪/???
作者: ☆校长☆    时间: 2013-1-13 17:05
没用过 ,nginx_htpasswd.pl  ?
作者: wdlth    时间: 2013-1-13 17:12
auth_basic_user_file /etc/.pmahtpasswd
作者: 用户名    时间: 2013-1-13 17:13
自己琢磨
作者: 每次醒来    时间: 2013-1-13 17:14
wdlth 发表于 2013-1-13 17:12
auth_basic_user_file /etc/.pmahtpasswd

这是路劲 还是.....?
作者: wdlth    时间: 2013-1-13 17:43
每次醒来 发表于 2013-1-13 17:14
这是路劲 还是.....?

就是一个文件,和.htaccess差不多的。
作者: 每次醒来    时间: 2013-1-13 17:57
wdlth 发表于 2013-1-13 17:43
就是一个文件,和.htaccess差不多的。

谢了!


perl -e 'print crypt($ARGV[0], "pwdsalt")' password ;echo ""#password请更改为您的密码
作者: 小夜    时间: 2013-1-13 17:58
有个在线生成/etc/.pmahtpasswd密码的,你网上搜一下。
作者: ccc    时间: 2013-1-13 18:05
没用过





欢迎光临 全球主机交流论坛 (https://loc.010206.xyz/) Powered by Discuz! X3.4