From a414f2cfc3858443d1343f9297d3383bd3c0ec12 Mon Sep 17 00:00:00 2001 From: zhitomirskiyi Date: Fri, 12 Nov 2010 16:34:10 -0800 Subject: [PATCH] added the missing gzip types and IE disable --- chef/cookbooks/common/templates/default/nginx.conf.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chef/cookbooks/common/templates/default/nginx.conf.erb b/chef/cookbooks/common/templates/default/nginx.conf.erb index 21ed1e4d1..2760ec14e 100644 --- a/chef/cookbooks/common/templates/default/nginx.conf.erb +++ b/chef/cookbooks/common/templates/default/nginx.conf.erb @@ -27,6 +27,10 @@ http { gzip_comp_level 2; gzip_proxied any; gzip_buffers 16 8k; + gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript; + gzip_disable "MSIE [1-6]\.(?!.*SV1)"; + + upstream thin_cluster { <% @ports.each do |port| %> server <%="localhost:#{port}"%>;