: 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.
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?
More posts by @Correia994
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.