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;
时间: 2024-11-06 07:29:15