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

          用来限制客户端上传主体文件的大小