rh9中apache的用户认证问题

由 dacheng 在 02-11-2004 11:01 发表:

rh9中apache的用户认证问题

访问 www。test。edu/test时,浏览器能够出现提示用户名和口令的窗口,但正确输入用户名和口令后,系统没有接受,在error-log中有记录。httpd。conf中相关语句如下:

 1<directoty "="" html="" test"="" var="" www="">   
 2  
 3AuthType Basic   
 4  
 5AuthName "my test"   
 6  
 7AuthUserFile /var/www/passwd/test   
 8  
 9Require Valid-user   
10  
11   
12  
13  
14  
15产生口令文件的命令如下:   
16  
17cd /var/www/   
18  
19mkdir passwd   
20  
21cd passwd   
22  
23htpasswd -c test username   
24  
25  
26  
27然后chown apache.apache test   
28  
29最后 service httpd restart   
30  
31  
32  
33但访问 www.test.edu/test时总不能正常使用,而且Require Valid-user中的Requ</directoty>
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus