Article ID: 122628, created on Aug 13, 2014, last review on Aug 17, 2016

  • Applies to:
  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux


ngx_http_gzip_module module is a filter that compresses responses using the gzip method. This often helps to reduce the size of transmitted data by half or even more.

How to enable it?


  1. Create a file using the command 'vi /etc/nginx/conf.d/gzip.conf' and put the following content in it:

    gzip         on;
    gzip_disable "MSIE [1-6]\.(?!.*SV1)";
    gzip_proxied any;
    gzip_types   text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript image/x-icon image/bmp image/svg+xml;
    gzip_vary    on;

    This is an example. It is possible to add in gz_types - application/javascript, application/js, etc.

  2. Test the configuration and fix errors (if any):

    # nginx -t
  3. Reload nginx configuration:

    # service nginx reload

Other gzip_types available for compression can be obtained from /etc/nginx/mime.types.

More about gzip compression module can be found in nginx manual.

Search Words

Enable gzip compression

install gzip compression plesk

gzip support on nginx


.htaccess file not loading


gzip plesk

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 01bc4c8cf5b7f01f815a7ada004154a2 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f aea4cd7bfd353ad7a1341a257ad4724a 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 742559b1631652fadd74764ae8be475e

Email subscription for changes to this article
Save as PDF