首页 > Web开发 > 详细

Apache增加Basic Auth

时间:2016-04-10 06:48:55      阅读:285      评论:0      收藏:0      [点我收藏+]
在.htaccess文件中增加
AuthUserFile /var/www/htpasswd/test.htpasswd
AuthName EnterPassword
AuthType Basic
require valid-user

#htpasswd密码文件生成。Create a password file Filename with username as the initial ID. It will prompt for the password
htpasswd -c Filename username

#Add or modify username2 in the password file Filename
htpasswd Filename username2
http://httpd.apache.org/docs/2.2/en/mod/mod_authn_file.html

Apache增加Basic Auth

原文:http://www.cnblogs.com/dream-bccb/p/5373301.html

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