有没有人能够解决这个问题呢,兄弟我望川秋水也不见人来。
 我照着这下面一段写,有什么错吗?连对要求密码的对话框都没有出来,只是不能访问该目录。访问该目录时出现如下错误,其它没加密目录可以访问。
##########################
Server error!
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. 
If you think this is a server error, please contact the webmaster 
Error 500
www.ptmf.com.cn 
Wed 20 Aug 2003 06:27:20 PM HKT 
Apache/2.0.40 (Red Hat Linux) 
##################################我照着以下方法写的:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
若对某一目录下的文件如/home/ftp/pub需要做到用户认证,则在httpd.conf  
中加入下面的行  
  
options indexes followsymlinks  
allowoverride authconfig  
order allow,deny  
allow from all    
用在目录/home/ftp/pub下放文件.htaccess,内容如下:  
authname "shared files"  
authtype basic  
authuserfile /etc/.passwd  
require valid-user  用随Apache来的程序htpasswd 生成文件/etc/.passwd,每行一个用户名:密码  %%%%%%%%%%%%%%%%%%%%%%%%  

解决方案 »

  1.   

    我在win下能成功的作了,也是你这种方法但是在linux下步行,我遇到的问题是,无论输入正确与否,都不能通过验证,也是说,那个验证页面好像是死循环
      

  2.   

    那可能是apache 的版本问题。我看有很多人遇到这个问题,网上查了都是这种访法。
    但我仔细照着做,也没有成功。有哪位在linux+apache 下做成功过,请指点迷津,小弟困惑已久了。服务器linux+apache+mysql (redhat 9.0+apache2.0.40 )