location  / {
         proxy_redirect off;
         proxy_set_header Host $host;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                   client_max_body_size 50m;
         client_body_buffer_size 256k;
         proxy_http_version 1.1;
         proxy_pass http://1.2.3.4:8080;
        }

  

posted on 2015-09-01 17:31  凌度  阅读(362)  评论(0编辑  收藏  举报