Nginx日志報錯資訊:
tail /var/log/nginx/access.log
2018/06/07 16:43:13 [error] 28702#0: *63078 client intended to send too large body: 1537420 bytes, client: 128.122.42.108, server: www.georgekai.com, request: "POST /cost/DocumentLibrary/TMMoreFileOtherHandler.ashx?type=rau HTTP/1.1", host: "www.georgekai.com"
原因:用戶端通過POST方式上傳較大的主體檔案 (1537420 bytes)
解決:在http區塊下添加一行 “client_max_body_size 30m;”
用來限制用戶端上傳主體檔案的大小