Welcome! Log In Create A New Profile

Advanced

Re: Tiny Patch to allow gzip_static in location-if

Maxim Dounin
May 02, 2011 08:02PM
Hello!

On Mon, May 02, 2011 at 09:56:36AM +0200, Andi Hechtbauer wrote:

> 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?

http://wiki.nginx.org/IfIsEvil

Maxim Dounin

_______________________________________________
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 1822 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: 90
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