nginx 413报错解决

413 Request Entity Too Large

  1. server
  2. {
  3.     listen   80;
  4.     server_name  www.www.com;
  5.     #access_log    /export/servers/nginx/logs/qqqqqq.com;
  6.     location / {
  7.         proxy_pass     http://tomcat;
  8.         client_max_body_size    1000m;   #检查此配置项     限制上传文件大小
  9.     }
  10. }

用/export/servers/nginx/sbin/nginx -s reload重启下,上传文件的大小受限的问题就解决了。

0 Comments
Leave a Reply