nginx 做服务,前端文本数据超过300字,无法保存,服务器报500错误,数据小于300可以正常保存,是配置哪里不对吗?求各位老司机
已设置nginx 配置
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
proxy_buffer_size 1024k;
proxy_buffers 32 1024k;
proxy_busy_buffers_size 1024k;
为情所困2017-05-16 17:14:01
2016/11/29 17:32:41 [crit] 25902#0: *11761 open() "/var/lib/nginx/tmp/client_body/0000000655" failed (13: Permission denied), client: 1.86.27.55, server: test.yitushijie.com, request: "POST /article/add HTTP/1.1", host: "test.yitushijie.com", referrer: "http://test.yitushijie.com/article/add"
根据这个日志
问题解决了
进到/var/lib目录下查看nginx目录的权限:
执行命令:
chmod -R 775 nginx
问题解决。
谢谢大家