标签:lamp
vi/usr/local/apache2/conf/extra/httpd-vhosts.conf
<Directory *>
AllowOverride AuthConfig
AuthName "自定义的"
AuthType Basic
AuthUserFile /data/.htpasswd
require valid-user
</Directory>
保存后,然后
创建apache的验证用户
/usr/local/apache2/bin/htpasswd-c /data/.htpasswd aming
密码:123456
本文出自 “IT屌丝” 博客,请务必保留此出处http://68686789.blog.51cto.com/10438688/1834266
标签:lamp
原文地址:http://68686789.blog.51cto.com/10438688/1834266