HOW-TO How-to enable gzip support on nginx

APPLIES TO:

Plesk 12.0 for Linux
Plesk 11.0 for Linux
Plesk 11.5 for Linux

How to enable gzip support on nginx?

Create /etc/nginx/conf.d/gzip.conf with the following:


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;

gzip_types to compress other file types can be obtained from /etc/nginx/mime.types

Leave a Comment