LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 818|回复: 0

求apache2.2版本中的认证\访问控制如何配置????

[复制链接]
发表于 2007-8-3 20:14:56 | 显示全部楼层 |阅读模式
自己编译安装的APACHE2.24,原在2.0版本中认证\访问控制一个目录只需要在httpd.conf中加入如下的语言就可以了我这里访问控制的目录是/mnt/wine/smovie)
AccessFileName .htaccess
Alias /user/ "/mnt/wine/smovie/"
<Directory /mnt/wine/smovie/>
   Allowoverride All
   Options +ExecCGI
   SetHandler cgi-script
   Options Indexes FollowSymLinks MultiViews IncludesNoExec
   AddOutputFilter Includes html
   Order allow,deny
   Allow from all
   Allowoverride none
   Authtype basic
   Authname "Sorry,Deny anonymous user.you must have password!"
   Authuserfile /opt/.password
   Require valid-user
</Directory>

但是现在2.24版本中把如下的语言加入到conf/extra/httpd-default.conf中就死活不行了,要求验证对话框是出来了,但输入用户名和密码后出现如下提示了:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@zjnx.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


--------------------------------------------------------------------------------

Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.7a PHP/4.4.7 Server at 172.16.12.55 Port 80


郁闷不得其解,请求高人指点!!!!谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表