问题描述
大家好,我在我的网站上使用 PHP,在我的系统上使用 ubuntu linux.我在 apache 的 error.log 文件中收到了上述错误,即使在正确配置了所有内容之后.我对此进行了大量研究,但无法解决该问题.任何人都可以在这方面帮助我吗?以下是我在 abc 目录
中的 .htaccess 文件.任何人都可以在这方面帮助我吗?
Hi all I'm using PHP for my website and ubuntu linux on my system. I got the above error in error.log file of apache, even after configurating everything properly. I did a lot of research on this but couldn't be able to resolve the issue. Can anyone please help me in this reagard? Following is my .htaccess file in abc directory
. Can anyone please help me in this regard?
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName abc.org
AuthUserFile /home/abc/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/abc/public_html/_vti_pvt/service.grp
Options -Indexes
RewriteEngine On
RewriteRule ^alumni$ alumni.php
RewriteRule ^student$ student.php
RewriteRule ^view_alumni_article/view/([0-9]+)$ view_alumni_article.php?op=view&article_id=$1
推荐答案
确保 apache 可以读取 htaccess 文件:
Make sure that the htaccess file is readable by apache:
chmod 644 /var/www/abc/.htaccess
并确保它所在的目录是可读的和可执行文件:
And make sure the directory it's in is readable and executable:
chmod 755 /var/www/abc/
这篇关于权限被拒绝:/var/www/abc/.htaccess pcfg_openfile:无法检查 htaccess 文件,确保它可读?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!