關於Apache2.4的403錯誤

Apache的403報錯比較常見,有幾種原因:

1、html文件或所在目錄權限不足

2、代理Nginx、Apache本身做了訪問策略。

3、也有可能apache2.2和apache2.4的虛擬主機配置寫法不同導致,這點需要注意。

如配置錯誤會報錯 apache AH01630: client denied by server configuration。

apache2.2中:

  1. Order deny,allow

  2. Allow from all

  3. Allow from host ip

apache2.4中:

  1. Require all granted

  2. Require host ip

 

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