I'm trying the setup NGINX to access angular /dist
folder but can't make it works despite chmod -R 755 /path/to/dist
...
in my NGINX http block:
server {
listen 80;
server_name dashboard.example.local;
ssl off;
gzip on;
root /path/to/dist/;
index index.html;
location /api/ {
proxy_pass http://127.0.0.1:3000/;
}
}
I'm still getting this error "dist/index.html" is forbidden (13: Permission denied)
I already tried all the existing solutions I found on the internet.
EDIT: files that nginx are trying to access are 755