关于centos nginx访问403 forbidden 问题的解决
-
权限配置不正确
解决办法: 设置所有父目录为755权限,设置文件为644权限可以避免权限不正确
-
如果上面未解决问题
-
查看SELinux status
/usr/sbin/sestatus -v # 开启状态 SELinux status: enabled
-
修改配置文件
# 修改/etc/selinux/config 将SELINUX=enforcing改为SELINUX=disabled # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings in
-