1、原因分析

出现这个问题的原因是Apache2.2和Apache2.4的访问限制写法不一样导致的。

在2.2中
<Directory /home/xxx/public_html> Options +Includes -Indexes AllowOverride All Order Deny,Allow Allow from All </Directory>
# 在2.4中

<Directory /home/xxx/public_html>
        Options +Includes -Indexes
        AllowOverride All
        Require all granted
</Directory>
最后修改日期: 2021年8月5日

作者