nginx附件上传

 

http{

     include       mime.types;
    default_type  application/octet-stream;

    #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;
    
    # 配置nginx上传文件最大限制
    client_max_body_size 50m;

}

 

posted @ 2020-09-19 19:11  kszsa  阅读(227)  评论(0编辑  收藏  举报