Nginx日誌報錯信息:nginx
tail /var/log/nginx/access.logide
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"spa
緣由:客戶端經過POST方式上傳較大的主體文件 (1537420 bytes)日誌
解決:在http區塊下添加一行 「client_max_body_size 30m;」orm
用來限制客戶端上傳主體文件的大小server