当我尝试上传照片时,我从Django管理员那里得到了500.
当我检查error.log时,我发现:
2014/03/13 23:00:55 [crit] 16478#0: *24 open() "/var/lib/Nginx/tmp/client_body/0000000012" Failed (13: Permission denied),client: xxxxxxx.xxx,server: xxxxxxx.xxx,request: "POST xxxxxxx.xxx/item/86/ HTTP/1.1",host: "xxxxxxx.xxx",referrer: "http://xxxxxxx.xxx/item/86/"
------------------------------------------------------------------------
这有什么问题吗?
最佳答案
ew解决了.如错误消息所述,这确实只是一个“权限”问题.
原文链接:https://www.f2er.com/nginx/532417.html检查“ / var / lib / Nginx / tmp / client_body /”,并确保每个目录级别的权限均正确,以解决此问题.
更多详细信息,请参见此处:http://derekneely.com/2009/06/nginx-failed-13-permission-denied-while-reading-upstream/和此处:Permission Denied error with Django while uploading a file