maybe because of mixed with proxy pass?<br><br>I use curl to test:<br><br>this is the server mix proxy_pass with substitution with gzip on:<br> curl -k &quot;Host: <a href="http://www.shooter.cn">www.shooter.cn</a>&quot; &quot;<a href="http://124.155.161.176/xslt/main.xsl">http://124.155.161.176/xslt/main.xsl</a>&quot;  -vvv  -o x --compressed  <br>
return 51k none-gziped content<br><br>this is the original serverwith gzip on:<br> curl -k -H &quot;Host: <a href="http://www.shooter.cn">www.shooter.cn</a>&quot; &quot;<a href="http://61.129.66.75/xslt/main.xsl">http://61.129.66.75/xslt/main.xsl</a>&quot;  -vvv  -o x --compressed<br>
return 15k gziped content<br><br><div class="gmail_quote">On Fri, Jan 29, 2010 at 5:00 PM, Weibin Yao <span dir="ltr">&lt;<a href="mailto:nbubingo@gmail.com">nbubingo@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">tOmasEn at 2010-1-29 16:25 wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Substitution module <a href="http://wiki.nginx.org/NginxHttpSubModule" target="_blank">http://wiki.nginx.org/NginxHttpSubModule</a> can replace text for content from proxy_pass.<br>
<br>
In order to use this function, it have to turn gzip transfer off from server to server, which is understandable all right.<br>
<br>
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?<br>
</blockquote></div>
Are you sure Nginx can&#39;t  gzip the response with the substitution module? AFAIK, the substitution module is a filter module before the gzip filter module. They are not conflicted.<br>
<br>
-- <br><font color="#888888">
Weibin Yao</font><div><div></div><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Tomasen<br><a href="http://twitter.com/ShooterPlayer">http://twitter.com/ShooterPlayer</a><br><a href="http://t.sina.com.cn/Tomasen">http://t.sina.com.cn/Tomasen</a><br>