Chinaunix

标题: apache .htaccess [打印本页]

作者: stanmcse    时间: 2003-07-11 13:26
标题: apache .htaccess
i have a problem in apache .htaccess , i using RH9 and apache 2.0xx
my following setting:
httpd.conf
<Directory "/home/*/html">;
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>;

after restart httpd service

/home/test/html/.htaccess
Authtype Basic
AuthName "hello"
AuthUserFile /home/test/html/.passwd
<Limit GET >;
require user download
</Limit>;

/home/test/html/.passwd
htpasswd -c .passwd download

when i acccess http://localhost/~test/
type login download and password
the error message say Authentication required!

what's my problem ? pls help
作者: itbbs    时间: 2003-07-14 17:30
标题: apache .htaccess
我也没有设置成功,输入密码老说不对。那位高手指点一下
作者: mb    时间: 2003-07-15 09:52
标题: apache .htaccess
目录权限不对,改成你的apache用户可rx权限再试试   /home/test/html/.passwd
作者: itbbs    时间: 2003-07-15 17:18
标题: apache .htaccess
改了权限依然不对,我把文件属主都改成apache用户了。
还请高手帮助,谢谢!
作者: emailwht    时间: 2004-01-14 15:00
标题: apache .htaccess
我试过来了可以
chown apache:apache .passwd
chown apache:apache .htaccess
多谢




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2