一、关于在tomcat在server.xml的配置文件上传大小20M的限制 – maxPostSize=”20971520″
二、在nginx的nginx.conf的配置文件上传大小为20M – client_max_body_size 20m;
location /gw/file/upload { proxy_pass http://127.0.0.1/upload; proxy_redirect off; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Cookie $http_cookie; client_max_body_size 20m; }
原文出处:xwood -> http://xwood.net/_site_domain_/_root/5870/5874/t_c267726.html