xampp Apache Access forbidden! Error 403 解決方法

windows下使用xampp Apache配置虛擬主機,訪問相關網頁出現:

xampp Apache Access forbidden! Error 403
Access forbidden!  You don’t have permission to access the requested object. It is either read-protected or not readable by the server.

只需要將http.conf文件中的:

 <Directory /> 
     AllowOverride none
     Require all denied 
 </Directory> 

改成

  <Directory />
      ServerName test
      Options None  
      Order allow,deny  
      Allow from all   
  </Directory> 

保存重啓apache即可。

發佈了95 篇原創文章 · 獲贊 36 · 訪問量 17萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章