訪問 Apache 服務器提示(Forbidden You don't have permission to access / on this server 403)

找到 apache 配置文件 "httpd.conf"

找到如下代碼塊:
<Directory />
    AllowOverride All
    Require all denied
</Directory>

內容可能如下:     //內容可能存在差異
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

需要修改:
 Deny from all         //拒絕了一切連接
    或
 Require all denied    //拒絕所有訪問

修改如下:
Require all denied => Require all granted
Deny from all      => Allow from all
 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章