Tiny Patch to allow gzip_static in location-if
Andi Hechtbauer
anti at spin.de
Mon May 2 11:56:36 MSD 2011
Hi,
to allow us to use gzip_static like this:
location /static {
root ...;
...
if ( $arg_autogz ) {
gzip on;
gzip_static on;
}
}
We use the attached trivial patch to
src/http/modules/ngx_http_gzip_static_module.c
This may be useful to others, works in production, and might be included
in the source?
Or is there an other/better way to achieve what we want there?
Regards,
Andi
--
SPiN AG http://www.spin-ag.de/ +49 941 942 770
Bischof-von-Henle-Str. 2b, 93051 Regensburg, HRB 6295 Rgbg
Aufsichtsratsvorsitz: Dr. Christian Kirnberger,
Vorstände: Fabian Rott, Paul Schmid
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gzip_static-in-lif.patch
Type: text/x-patch
Size: 765 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx-devel/attachments/20110502/bea066dc/attachment.bin>
More information about the nginx-devel
mailing list