Mercurial > hg > ngx_http_gunzip_filter_module
annotate README @ 1:0dd7d109e56b
Gunzip: add more tests and improve docs.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sun, 20 Dec 2009 03:55:31 +0300 |
parents | a75d4ad9c5d2 |
children | 93115aab4c92 |
rev | line source |
---|---|
0 | 1 Gunzip module for nginx. |
2 | |
1
0dd7d109e56b
Gunzip: add more tests and improve docs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
0
diff
changeset
|
3 This module allows gunzipping responses returned with Content-Encoding: gzip |
0 | 4 for clients that doesn't support it. It may be usefull if you prefer to store |
5 data compressed (to save space or disk/network IO) but do not want to penalize | |
6 clients without gzip support. | |
7 | |
1
0dd7d109e56b
Gunzip: add more tests and improve docs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
0
diff
changeset
|
8 Note well: only responses with Content-Encoding set to gzip before this module |
0dd7d109e56b
Gunzip: add more tests and improve docs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
0
diff
changeset
|
9 are handled (e.g. using "add_header Content-Encoding gzip;" isn't enough as it |
0dd7d109e56b
Gunzip: add more tests and improve docs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
0
diff
changeset
|
10 happens after). As of now only proxy and fastcgi are able to do so. |
0dd7d109e56b
Gunzip: add more tests and improve docs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
0
diff
changeset
|
11 |
0dd7d109e56b
Gunzip: add more tests and improve docs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
0
diff
changeset
|
12 This module was designed to work with nginx 0.8.* (though it should work with |
0dd7d109e56b
Gunzip: add more tests and improve docs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
0
diff
changeset
|
13 0.7.* too). |
0dd7d109e56b
Gunzip: add more tests and improve docs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
0
diff
changeset
|
14 |
0 | 15 Configuration directives: |
16 | |
17 gunzip (on|off) | |
18 | |
19 Context: http, server, location | |
20 Default: off | |
21 | |
22 Switches gunzip. | |
23 | |
24 gunzip_buffers <number> <size> | |
25 | |
26 Context: http, server, location | |
27 Default: 32 4k/16 8k | |
28 | |
29 Specifies number and size of buffers available for decompression. | |
30 | |
31 Usage: | |
32 | |
33 location /storage/ { | |
34 gunzip on; | |
1
0dd7d109e56b
Gunzip: add more tests and improve docs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
0
diff
changeset
|
35 ... |
0 | 36 } |
37 | |
38 To compile nginx with gunzip module, use "--add-module <path>" option to nginx | |
39 configure. |