Substitution module <a href="http://wiki.nginx.org/NginxHttpSubModule">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><br>here is my sample conf<br><br>location /source {<br> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>
proxy_set_header Host $http_host;<br> proxy_redirect off;<br> proxy_pass <a href="http://source">http://source</a>; <br> proxy_set_header Accept-Encoding "";<br>
sub_filter_types text/xml;<br> sub_filter '3236699304584559' '9418887123196030' ;<br> sub_filter_once off;<br> break;<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>