nginx开启gzip

upstream points_server {
        ip_hash;
        server 10.128.8.100:8080;
   }
server {
        error_log logs/web-points.log;
        listen  10000;
        location / {
                gzip on;
                gzip_types application/json;
                gzip_comp_level 3;
                gzip_min_length 1k;
                gzip_buffers 8 32k;
                gzip_http_version 1.1;
                gzip_proxied any;
                gzip_vary on;
                proxy_pass http://points_server/web-points/;
        }
  }    

 

posted @ 2015-11-26 11:40  龙昭羽  阅读(170)  评论(0编辑  收藏  举报