首页 > Web开发 > 详细

创建htpasswd文件在nginx (没有 apache)

时间:2019-12-11 16:14:15      阅读:92      评论:0      收藏:0      [点我收藏+]

Create htpasswd file for nginx (without apache)

If you‘re like me, and use Nginx instead of Apache, you could eventually face this problem: Create an htpasswd file (for htaccess "authentication").

To create your file, without installing Apache, just run:

$ printf "USER:$(openssl passwd -crypt PASSWORD)\n" >> .htpasswd

Replace USER and PASSWORD for your user and password :)

创建htpasswd文件在nginx (没有 apache)

原文:https://www.cnblogs.com/Hackerman/p/12022640.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!