Mobile app version of vmapp.org
Login or Join
Correia994

: Nginx stat() Permission denied At error.log, there are log of stat() errors. stat() "/srv/server/public/js/build/app.min.js" failed (13: Permission denied) The application folder is at /home/ec2-user/server.

@Correia994

Posted in: #Nginx

At error.log, there are log of stat() errors.

stat() "/srv/server/public/js/build/app.min.js" failed (13: Permission denied)


The application folder is at /home/ec2-user/server.

Here is the nginx setting:

location / {
alias /srv/server/public/;
try_files $uri @proxypass ;
}


where /srv/server links to /home/ec2-user/server.

User 'nginx' is used at nginx.conf.

user nginx;


I tried to run sudo -u nginx stat /home/ec2-user/, it works. But when I run sudo -u nginx stat /home/ec2-user/server, it says Permission denied.

The folder(/home/ec2-user/server)'s permission is drwxrwxr-x.

If I can't fix this error, can I disable nginx's stat() command?

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Correia994

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme