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;
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;
本文转自 艺晨光 51CTO博客,原文链接:http://blog.51cto.com/ycgit/1563307,如需转载请自行联系原作者