tomcat nginx默許的post大小限制


tomcat nginx默認的post大小限制
執行大文件上傳,或者,大數據量提交時,當提交的數據大小超過一定限制時,發現后台從request取值的代碼request.getParameter("message")返回值為null,原因是因為服務器對於提交的post請求的大小有一定的限制

tomcat:默認大小2097152,當maxPostSize=0時,不限制;maxPostSize=20971520時,為20M
nginx:默認的最大請求body大小為8m,修改設置client_max_body_size=100m;
resin:沒有發現默認限制請求大小的地方!

tomcat:maxPostSize


The maximum size in bytes of the POST which will be handled by the container FORM URL parameter parsing. The limit can be disabled by setting this attribute to a value less than or equal to 0. If not specified, this attribute is set to 2097152 (2 megabytes).


Nginx的"413 request entiry too large"

tomcat返回400

tomcat請求端口都加上maxPostSize="0"

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM