Kouhei Sutou
null+****@clear*****
Tue Sep 4 12:30:06 JST 2012
Kouhei Sutou 2012-09-04 12:30:06 +0900 (Tue, 04 Sep 2012) New Revision: ab9ecd56d2d845442f7fbcd734fdbe0c200b4aa8 https://github.com/groonga/groonga/commit/ab9ecd56d2d845442f7fbcd734fdbe0c200b4aa8 Log: doc groonga-httpd: add sample configuration for gzip compression Modified files: doc/source/server/http/comparison.txt Modified: doc/source/server/http/comparison.txt (+23 -1) =================================================================== --- doc/source/server/http/comparison.txt 2012-09-04 12:00:19 +0900 (f82ce66) +++ doc/source/server/http/comparison.txt 2012-09-04 12:30:06 +0900 (c9c14e8) @@ -237,7 +237,29 @@ reverse proxy is needed. :doc:`groonga-httpd` supports gzip compression. Here is a sample configuration to compress response by gzip:: - TODO + events { + } + + http { + server { + listen 10041; + + groonga_database /PATH/TO/DATABASE; + + location /d/ { + groonga on; + gzip on; + gzip_types *; + } + } + } + +Note that `gzip_types *` is specified. It's one of the important +configuration because the default value of `gzip_types` is +`text/html`. :doc:`groonga-httpd` returns one of JSON, XML or +MessagePack format data. They aren't included in the default +`gzip_types`. So you need specify `gzip_types *` explicitly to mark +those data as gzip target data. POST ---- -------------- next part -------------- HTML����������������������������...Download