Welcome! Log In Create A New Profile

Advanced

Re: is there any way to make Substitution module to work with gzip?

Weibin Yao
January 29, 2010 05:58AM
tOmasEn at 2010-1-29 17:21 wrote:
> by the way I also tried add gzip_proxied any;, but doesn't make
> difference.
>
> location = /xslt/main.xsl {
> proxy_set_header X-Forwarded-For
> $proxy_add_x_forwarded_for;
> proxy_set_header Host $http_host;
> proxy_redirect off;
> proxy_pass http://61.129.66.75:80;
> gzip_proxied any;
> proxy_set_header Accept-Encoding ""; //have
> to use this otherwise sub_filter won't work
This directive deletes the request's "Accept-Encoding " header and the
gzip module will not work any more.

You may use this module to set the input header:
http://wiki.nginx.org/NginxHttpHeadersMoreModule
more_set_input_headers 'Accept-Encoding: gzip';

But I suggest you should turn off the gzip in the backend instead, it's
more clear than these trick directives.
> sub_filter_types text/xml;
> sub_filter '3236699304584559'
> '9418887123196030' ;
> sub_filter_once off;
>
> }

--
Weibin Yao


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

is there any way to make Substitution module to work with gzip?

tOmasEn January 29, 2010 03:30AM

Re: is there any way to make Substitution module to work with gzip?

Maxim Dounin January 29, 2010 03:46AM

Re: is there any way to make Substitution module to work with gzip?

Weibin Yao January 29, 2010 04:04AM

Re: is there any way to make Substitution module to work with gzip?

tOmasEn January 29, 2010 04:24AM

Re: is there any way to make Substitution module to work with gzip?

tOmasEn January 29, 2010 04:24AM

Re: is there any way to make Substitution module to work with gzip?

Weibin Yao January 29, 2010 05:58AM

Re: is there any way to make Substitution module to work with gzip?

Maxim Dounin January 29, 2010 06:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 176
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready