Nginx 配置client_max_body_size 解决上传大文件的问题


[root@server81 conf]# vim nginx.conf  #user nobody; worker_processes 1;  #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info;  #pid logs/nginx.pid; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; client_max_body_size 20m;  #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 logs/access.log main; sendfile on;  #tcp_nopush on;  #keepalive_timeout 0; keepalive_timeout 65;  #gzip on; include vhosts/*.conf; }


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM