1. 程式人生 > >Nginx報錯信息-POST

Nginx報錯信息-POST

nginx


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;”

用來限制客戶端上傳主體文件的大小


Nginx報錯信息-POST