Apache的403報錯比較常見,有幾種原因:
1、html文件或所在目錄權限不足
2、代理Nginx、Apache本身做了訪問策略。
3、也有可能apache2.2和apache2.4的虛擬主機配置寫法不同導致,這點需要注意。
如配置錯誤會報錯 apache AH01630: client denied by server configuration。
apache2.2中:
-
Order deny,allow
-
Allow from all
-
Allow from host ip
apache2.4中:
-
Require all granted
-
Require host ip