vi virtualdomain.conf
添加如下:
AllowOverride AuthConfig
AuthType Basic
AuthName "Please enter username and password"
AuthUserFile /home/X.com/.htpasswd
require valid-user
/usr/local/apache2/bin/htpasswd -c
/home/X.com/.htpasswd rd-kabu
/usr/local/apache2/bin/apachectl configtest
/usr/local/apache2/bin/apachectl graceful
阅读(669) | 评论(0) | 转发(0) |