selinux 开启导致 nginx 403
If you still see permission denied after verifying the permissions of the parent folders, it may be SELinux restricting access.
To check if SELinux is running:
getenforce
To disable SELinux until next reboot:
setenforce Permissive
Restart Nginx and see if the problem persists. To allow nginx to serve your www directory (make sure you turn SELinux back on before testing this. i.e, setenforce Enforcing)
本文介绍了解决因SELinux开启而导致的Nginx 403错误的方法。通过检查SELinux状态、临时禁用及更改文件上下文来解决权限问题。
3224

被折叠的 条评论
为什么被折叠?



