couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torstein Krause Johansen <torsteinkrausew...@gmail.com>
Subject Re: Does CouchDB support gzip encoding?
Date Wed, 25 May 2011 08:10:46 GMT
On 25 May 2011 15:05, Andrew Stuart (SuperCoders)
<andrew.stuart@supercoders.com.au> wrote:
> I put nginx in front of the server as a reverse proxy and configure it to do
> the GZIP compression.

Cheers for that.

I've got this in /etc/nginx/sites.enabled/default

  location /memento {
      proxy_pass http://localhost:5984/memento;
      proxy_set_header Host $host;
  }

And gzip turned on in /etc/nginx/nginx.conf:
        gzip on;
        gzip_disable "msie6";

        gzip_vary on;
        gzip_proxied any;
        gzip_comp_level 6;
        gzip_buffers 16 8k;
        gzip_http_version 1.1;
        gzip_types text/plain text/css application/json
application/x-javascript text/xml application/xml application/xml+rss
text/javascript;

But after restarting nginx, it seems like I'm still getting text/plain:

 wget  --header="Accept-Encoding: gzip" -S -O /dev/null
"http://localhost:80/memento/ ...
[..]
  HTTP/1.1 200 OK
  Server: nginx/1.0.1
  Date: Wed, 25 May 2011 08:06:34 GMT
  Content-Type: text/plain;charset=utf-8
  Connection: close
  Vary: Accept-Encoding
  Etag: "8YHQMMO1RSGW6DKQHQDBM8X6L"
  Cache-Control: must-revalidate

What am I missing here?

Cheers,

-Torstein

Mime
View raw message