Skip to content

Magento 2 nginx 404 error permission denied on setup

I have problem with setting up project the nginx is working fine and it is setup correctly, but it gives me 404 Not Found page when I try to access the url.
The directory permissions

The log:
2022/12/06 19:01:26 [crit] 285154#285154: *3 stat() "/home/kristijan/Documents/VAPO/vapo/pub/errors/404.php" failed (13: Permission denied), client: 127.0.0.1, server: vapo.local, request: "GET / HTTP/1.1", host: "vapo.local"