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