:: Nginx: enable gzip compression
:: How to enable gzip compression on nginx
+ configure nginx.conf
vi /etc/nginx/nginx.conf
add / setup compression for nginx:
gzip on; gzip_http_version 1.0; gzip_comp_level 2; gzip_proxied any; gzip_min_length 1100; gzip_buffers 16 8k; gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript; gzip_disable "MSIE [1-6].(?!.*SV1)"; gzip_vary on;
+ testing configuration and reload nginx
nginx -t nginx -s reload