解決問題 “You don't have permission to access /index.html on this server.”


配置apache2

Forbidden

You don't have permission to access /index.html on this server.

可以先看看權限index.html

解決方法:更改文件權限;chmod 755 index.html

還有問題的話,可以。。。。

打開apache配置文件httpd.conf,找到這么一段:
<Directory />
     Options FollowSymLinks
     AllowOverride None
     Order deny,allow
     deny from all
     Satisfy all
</Directory>
然后試着把deny from all中的deny改成了allow,保存后重起了apache,然后再一測試我的網頁,哈哈!居然問題就出在這,訪問測試網站完全正常了。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM