Apache httpd Forbidden 403

一、看看是不是Directory配置错了

Apache 2.4 以后是这么配置


   AllowOverride None
   Options Indexes FollowSymLinks
   Require all granted

Apache 2.2之前是这么配置


    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    allow from all

二、看看是不是selinux的原因

临时关闭

#setenforce 0

永久关闭重启生效

修改/etc/selinux/config 文件
将SELINUX=enforcing改为SELINUX=disabled
重启机器即可

你可能感兴趣的:(exception)