xiahe999 发表于 2018-11-13 08:49:51

nginx默认会限制上传文件的大小为1M

  http {
  include       /etc/nginx/mime.types;
  default_typeapplication/octet-stream;
  charset utf-8;
  log_formatmain'$remote_addr - $remote_user [$time_local] "$request" '
  '$status $body_bytes_sent "$http_referer" '
  '"$http_user_agent" "$http_x_forwarded_for"';
  access_log/var/log/nginx/access.logmain;
  client_max_body_size 10m;#增加这个参数就可以指定最大上传文件大小为10m了;
  sendfile      on;
  #tcp_nopush   on;
  keepalive_timeout65;

页: [1]
查看完整版本: nginx默认会限制上传文件的大小为1M