Welcome! Log In Create A New Profile

Advanced

Tiny Patch to allow gzip_static in location-if

Andi Hechtbauer
May 02, 2011 03:58AM
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
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Tiny Patch to allow gzip_static in location-if

Andi Hechtbauer 1821 May 02, 2011 03:58AM

Re: Tiny Patch to allow gzip_static in location-if

Maxim Dounin 598 May 02, 2011 08:02PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 77
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready