|
在 httpd-2.0.48中觉得目录访问权限的配置很简单,但是到了httpd-2.2.4中就觉得很费劲了!!!
APACHE是自己编译的,已经在httpd.conf中
# Various default settings
Include conf/extra/httpd-default.conf
把这个注释去掉了,进入conf/extra/目录中在httpd-default.conf
中加入了如下语句:
DocumentRoot "/mnt/wine/smovie/"
Alias /user/ "/mnt/wine/smovie/"
<Directory "/mnt/wine/smovie">
Options Indexes FollowSymLinks
AllowOverride Options
Order allow,deny
Allow from all
</Directory>
<Directory "/mnt/wine/smovie/">
Allowoverride none
authtype basic
authname "Sorry,Deny anonymous user.you must have password!"
authuserfile /opt/.password
require valid-user
</Directory>
这里面的/mnt/wine/smovie目录为windows分区,这个目录我想需要用户名和密码才能访问的.但是进入http://local/user/这个路径后提示如下,不知何解?
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, you@example.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.1 Port 80
请有知道的高手提供解决方案!!!!@谢谢!!!! |
|