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
問題解決。
謝謝大家