apache - 设置页面认证
设置页面认证
2004-04-23 15:18 pm来自:Linux文档
现载:Www.8s8s.coM
地址:无名
apache安装于/usr/local/apache,主页在/usr/local/apache/htdocs
#vi /usr/local/apache/htdocs/.htaccess
AuthName Protected
AuthUserFile /usr/local/apache/.htpasswd
AuthType Basic
require valid-user
#vi /usr/local/apache/.htpasswd
robert:A101E2ThTjG4.
#/usr/local/apache/bin/htpasswd [-c] /usr/local/apache/.htpasswd robert
没有该.htpasswd文件时使用一次-c,以后无需使用