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

前端 未结 15 2508
逝去的感伤
逝去的感伤 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

    well seems logical, all files are root user, try changing it to nginx user, just wanted to make sure it's not a listing permission denied first.

    sudo chown -R nginx:nginx /var/www/html
    

提交回复
热议问题