Welcome! Log In Create A New Profile

Advanced

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

tOmasEn
January 29, 2010 03:30AM
Substitution module http://wiki.nginx.org/NginxHttpSubModule can replace
text for content from proxy_pass.

In order to use this function, it have to turn gzip transfer off from server
to server, which is understandable all right.

But I want when after substitution module replaced the text, nginx can gzip
it and send it to client. Is there any way to do that?

here is my sample conf

location /source {
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://source;
proxy_set_header Accept-Encoding "";
sub_filter_types text/xml;
sub_filter '3236699304584559' '9418887123196030' ;
sub_filter_once off;
break;
}

--
Tomasen
http://twitter.com/ShooterPlayer
http://t.sina.com.cn/Tomasen
_______________________________________________
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: 282
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