I recently added rewrite settings to NGINX manually. However, now any directory gives a "403 Forbidden" error, even if that directory has an index page. I can't see the error.
Page 403 Forbidden


As per the settings below, the site is static and made with HTML, CSS and JS:

Error Page conf

Logs error website:
2025/03/29 06:43:27 [crit] 2995145#0: *30540 stat() "/www/wwwroot/site.com/public_html/api/index.php/v1/config/application" failed (13: Permission denied), client: 51.68.46.249, server: site.com, request: "GET /api/index.php/v1/config/application?public=true HTTP/1.1", host: "www.site.com"
2025/03/29 06:43:27 [crit] 2995145#0: *30540 stat() "/www/wwwroot/site.com/public_html/api/index.php/v1/config/application.html" failed (13: Permission denied), client: 51.68.46.249, server: site.com, request: "GET /api/index.php/v1/config/application?public=true HTTP/1.1", host: "www.site.com"
2025/03/29 06:43:27 [crit] 2995145#0: *30540 stat() "/www/wwwroot/site.com/public_html/index.html" failed (13: Permission denied), client: 51.68.46.249, server: site.com, request: "GET /api/index.php/v1/config/application?public=true HTTP/1.1", host: "www.site.com"
2025/03/29 06:43:27 [error] 2995145#0: *30540 open() "/www/wwwroot/site.com/public_html/404.html" failed (13: Permission denied), client: 51.68.46.249, server: site.com, request: "GET /api/index.php/v1/config/application?public=true HTTP/1.1", host: "www.site.com"
2025/03/29 09:19:05 [error] 2995145#0: *31637 "/www/wwwroot/site.com/public_html/index.html" is forbidden (13: Permission denied), client: 198.235.24.39, server: site.com, request: "GET / HTTP/1.1", host: "www.site.com"