Gzip compression enable on nginx

Working configuration for gzip and allowing some extensions to be compressed:

gzip on;
gzip_disable "msie6";
gzip_comp_level 6;
gzip_min_length 1100;
gzip_buffers 16 8k;
gzip_proxied any;
gzip_types text/plain text/css text/js text/xml text/javascript application/javascript application/json application/xml application/rss+xml image/svg+xml;
  • nginx, gzip, compression, enable
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

 Nginx Proxy timeout backend

If you have an nginx server that communicates with a server in the backend and it times out after...

 Wordpress nginx rule to replace htaccess

As some of you may know, nginx does not work with mod rewrite, and therefor it does not work with...

 Too many open files error in nginx

If you receive below error in nginx log it means that the default limit for the nginx process was...