问题原文
原帖链接 · BrTkCa · CC BY-SA 3.0
I'm using node.js with Nginx as web server running on Slackware 14.1.
I created a page that uploads a file. In my development machine (Debian like) it works fine, but in production (Slackware server) I get this error in /var/log/nginx/error.log:
2015/10/09 15:08:44 [crit] 1231#0: *5 open() "/var/lib/nginx/client_body/0000000003" failed (13: Permission denied), client: 10.0.0.22, server: localhost, request: "POST /home/perfil_usuario/upload HTTP/1.1", host: "aluno.fio.edu.br", referrer: "http://aluno.fio.edu.br/home/perfil_usuario/upload"
And Nginx returns a 500 Internal Server Error.
I searched and try the fixes from many posts but the error continues.
已采纳解答
原帖链接 · Federico Sierra · CC BY-SA 3.0
As the error message says, this is a Permissions issue.
This is usually caused by nginx process user (www-data for example) not have read/execute access to one of the parent directories.
Check through /var/lib/nginx/client_body/ and make sure the permission is correct at each directory level to solve the problem.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
