Why does Nginx return a 403 even though all permissions are set properly?

前端 未结 15 2539
逝去的感伤
逝去的感伤 2020-12-12 09:54

I have Nginx setup and displaying the test page properly. If I try to change the root path, I get a 403 Forbidden error, even though all permissions are identical. Additiona

15条回答
  •  忘掉有多难
    2020-12-12 10:23

    This is an addition to Prowlas answer but I dont have enough reputation to commment: If the /path/to/www is a home directory of a user. You should try:

    setsebool -P httpd_enable_homedirs=1
    

    This solved my problem

    Source: http://forums.fedoraforum.org/archive/index.php/t-250779.html

提交回复
热议问题