nginx默认会限制上传文件的大小为1M
https://blog.51cto.com/ycgit/1563307
艺晨光关注0人评论12037人阅读2014-10-13 15:29:50
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
charset utf-8;
log_format main ‘$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.log main;
client_max_body_size 10m; #增加这个参数就可以指定最大上传文件大小为10m了;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
原文地址:https://www.cnblogs.com/jinanxiaolaohu/p/11391134.html
时间: 2024-10-03 19:33:38