From fdd326481261761cf1aa8193ad71dc6bd0bdd18b Mon Sep 17 00:00:00 2001 From: danielvincent Date: Tue, 2 Nov 2010 12:00:27 -0700 Subject: [PATCH] proxy buffering enabled and gzip compression for files other than text/html in nginx.conf --- config/sprinkle/conf/nginx.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/sprinkle/conf/nginx.conf b/config/sprinkle/conf/nginx.conf index 68eff1606..724645292 100644 --- a/config/sprinkle/conf/nginx.conf +++ b/config/sprinkle/conf/nginx.conf @@ -27,8 +27,9 @@ 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)"; + 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 { server unix:/tmp/thin.0.sock; server unix:/tmp/thin.1.sock; @@ -46,7 +47,6 @@ http { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off; - proxy_buffering off; if (-f $request_filename/index.html) { rewrite (.*) $1/index.html break;