zoukankan      html  css  js  c++  java
  • nginx配置*,文件上传模块

    upstream tornado{
    server 127.0.0.1:8000;
    }
    server {
    listen 80;
    server_name render.infra.lzyco.com;
    location /upload {
    upload_pass /uploadFile;
    upload_store /tmp/tornado;
    # upload_limit_rate 1024k;
    upload_set_form_field "${upload_field_name}_name" $upload_file_name;
    upload_set_form_field "${upload_field_name}_content_type" $upload_content_type;
    upload_set_form_field "${upload_field_name}_path" $upload_tmp_path;
    upload_aggregate_form_field "${upload_field_name}_md5" $upload_file_md5;
    upload_aggregate_form_field "${upload_field_name}_size" $upload_file_size;
    upload_pass_form_field "^submit$|^description$";

    client_max_body_size 1000m;

    }

    location /uploadFile {
    proxy_pass_header Server;
    proxy_set_header Host $http_host;
    proxy_set_header X_Real_IP $remote_addr;
    proxy_set_header X-Scheme $scheme;

    proxy_pass http://tornado;
    }

    location / {
    proxy_pass_header Server;
    proxy_set_header Host $http_host;
    proxy_set_header X_Real_IP $remote_addr;
    proxy_set_header X-Scheme $scheme;

    proxy_pass http://tornado;
    client_max_body_size 1000m;
    }

    }

  • 相关阅读:
    高斯消元
    逻辑运算符之优先级&&and、or
    康托展开
    关于bootstrap的双层遮罩问题
    写好页面在内网内访问
    swiper插件的一些坑
    第一篇博客
    poj 3415 Common Substrings
    poj 1509 Glass Beads
    poj 3260 The Fewest Coins
  • 原文地址:https://www.cnblogs.com/mylele/p/5105343.html
Copyright © 2011-2022 走看看