- Edited
client_max_body_size 1G;
单是上传一个200M的文件的时候就会报413的错误
<html>
<head>
<title>413 Request Entity Too Large</title>
</head>
<body bgcolor="white">
<center>
<h1>413 Request Entity Too Large</h1>
</center>
<hr>
<center>nginx/1.9.14</center>
</body>
</html>
而且nginx中没有任何access和error日志
之后我尝试把client_max_body_size设置为1M 上传一个2M的文件虽然同样会报413单是和上面的错误不太一样
<html>
<head>
<title>413 Request Entity Too Large</title>
</head>
<body bgcolor="white">
<center>
<h1>413 Request Entity Too Large</h1>
</center>
<hr>
<center>openresty/1.9.15.1</center>
</body>
</html>
center里面的内容不一样,而且有日志
==> ./openresty-file.error.log <==
2016/08/19 19:56:55 [error] 167975#0: *393 client intended to send too large body: 2376936 bytes, client: 172.16.158.8, server: , request: "POST /callback/bank/upload HTTP/1.0", host: "test.loans.upload-file.t.bbtfax.com"
==> ./openresty-file.access.log <==
172.16.158.8 - - [19/Aug/2016:19:56:55 +0800] "POST /callback/bank/upload HTTP/1.0" 413 607 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36"
可能是什么原因呢?请求帮助,谢谢。