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

tOmasEn tomasen at
Fri Jan 29 11:25:33 MSK 2010

Substitution module 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_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;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list