By default, it will complain with a
403 Forbidden page if simply changing the
root in nginx config to somewhere else. This is usually caused by two issues:
- directory ownerships and permissions
- SELinux configs
For my case, it’s the SELinux. In short, I just put the necessary commands here:
For more details, check the answers in this question on stackoverflow.