Skip to content

Instantly share code, notes, and snippets.

@lnoering
Created August 7, 2015 16:12
Show Gist options
  • Save lnoering/e11e071d8c47f26a1a57 to your computer and use it in GitHub Desktop.
Save lnoering/e11e071d8c47f26a1a57 to your computer and use it in GitHub Desktop.
Configuração de gzip no vhost.
# colocar em /etc/nginx
##turn on gzip compreesion
gzip on;
gzip_static on;
gzip_comp_level 9;
gzip_min_length 1100;
gzip_types text/plain image/png image/gif image/jpeg application/x-javascript text/css text/xml application/xml application/xml+rss text/javascript;
gzip_vary on;
gzip_http_version 1.1;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment