|
自己编译安装的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
郁闷不得其解,请求高人指点!!!!谢谢 |
|