==How to enable gzip compression in nginx for static files and speed up your site ==
tonginx configuration file /etc/nginx/nginx.conf add in "http"directive these lines:
gzipon;
gzip_disable"msie6";
gzip_varyon;
gzip_proxiedany;
gzip_comp_level6;
gzip_buffers16 8k;
gzip_typestext/plain text/css application/json application/x-javascripttext/xml application/xml application/xml+rss application/javascript text/javascript;
Savefile and restart the nginx:
/etc/init.d/nginxrestart
Afterthat all the css and javasripts files will be compressed on the server side and your sites will work faster
Sincerely, Olga Secom
tonginx configuration file /etc/nginx/nginx.conf add in "http"directive these lines:
gzipon;
gzip_disable"msie6";
gzip_varyon;
gzip_proxiedany;
gzip_comp_level6;
gzip_buffers16 8k;
gzip_typestext/plain text/css application/json application/x-javascripttext/xml application/xml application/xml+rss application/javascript text/javascript;
Savefile and restart the nginx:
/etc/init.d/nginxrestart
Afterthat all the css and javasripts files will be compressed on the server side and your sites will work faster
Sincerely, Olga Secom