我需要this page才能向公众开放,this page要求登录。我想使用Directory指令实现这一点。 在httpd.conf中我有:
<Directory /var/www/hprcc-exp.unl.edu/staff/>
<Files articlemanagement.php>
AuthType Basic
AuthName "HPRCC Staff Utilities"
AuthUserFile /var/etc/hprccpass
Require valid-user
</Files>
Order allow,deny
Deny from all
satisfy all
</Directory>
我如何实现这一目标?
答案 0 :(得分:0)
尝试删除Files
指令和Deny from all
(这将阻止所有内容,除非您还定义Allow from ...
):
<Directory /var/www/hprcc-exp.unl.edu/staff/>
AuthType Basic
AuthName "HPRCC Staff Utilities"
AuthUserFile /var/etc/hprccpass
Require valid-user
</Directory>