|
我配了两天,还搞不定。
在浏览器里一访问就说forbidden.
以下是我的配置步骤。
httpd.conf中添加
<Directory /usr/local/apache/cgi-bin/vqadmin>
Deny from all
Options ExecCGI
AllowOverride AuthConfig
Order deny,allow
</Directory>
cd /usr/local/apche/cgi-bin/vqadmin
編輯 .htaccess 文件
AuthType Basic
AuthUserFile /var/www/cgi-bin/vqadmin.passwd
AuthName "Welcome to Net-Warder.com"
require user alex_chou
satisfy any
chown apache .htaccess
chmod 600 .htaccess
htpasswd -bc /etc/httpd/conf/vqadmin.passwd alex_chou 123 ?執柺牵 alex_chou 口令是: 123
修改 /usr/local/apache/cgi-bin/vqadmin/vqadmin.acl 文件
找到 " admin VIMUDCA admin user" 一行,在下面添加:
alex_chou VIMUCADX alex_chou
请大虾看看错在哪里?? |
|