Gzipping proxied content after using subs_filter fails

姚伟斌 nbubingo at gmail.com
Mon Aug 13 06:00:52 UTC 2012


Thanks. I'll check this problem tonight. Can you send me your
nginx.conf and the test page?

You can sent it to my private email: yaoweibin at gmai.com

2012/8/13 abstein2 <nginx-forum at nginx.us>:
> It looks like there's an issue with the newest revision of the module
> and nginx 1.2.3. When installed, whether gzip is on or off, the portion
> of code that was previously missing/not transmitted now gets
> transmitted, but isn't the actual page content. Instead it's gibberish
> with some of the raw nginx configuration mixed in.
>
> An example of the code being output:
>
> Xv±t™ Xv±t™  ý  ý  w.google-analytics.com/urchin.js"
> type="text/javascript"> ct.asp">CONTACT US | PRIVACY POLICY | TERMS OF
> USE
> ccel-expires  x-accel-charset  x-accel-redirect  status  x-accel-buffering  x-accel-limit-rate  x-accel-expires  x-accel-charset  x-accel-redirect ¨Æ½    /usr/scgi_temp@ǽ €Ç½ Àǽ Ƚ @Ƚ   status  x-accel-buffering  x-accel-limit-rate  x-accel-expires  x-accel-charset  x-accel-redirect  ɽ    /usr/scgi_tempÀɽ ʽ @ʽ €Ê½ Àʽ   status  x-accel-buffering  x-accel-limit-rate  x-accel-expires  x-accel-charset  x-accel-redirect h˽    /usr/scgi_temp̽ @̽ €Ì½ À̽ ͽ   status  x-accel-buffering  x-accel-limit-rate  x-accel-expires  x-accel-charset  x-accel-redirect Èͽ    /usr/scgi_temp€Î½ Àν Ͻ @Ͻ €Ï½   status  x-accel-buffering  x-accel-limit-rate  x-accel-expires  x-accel-charset  x-accel-redirect (н    /usr/scgi_tempÀн ѽ @ѽ €Ñ½ Àѽ   status  x-accel-buffering  x-accel-limit-rate  x-accel-expires  x-accel-charset  x-accel-redirect ˆÒ½    /usr/scgi_temp@Ó½ €Ó½ ÀÓ½ Ô½ @Ô½   status  x-accel-buffering  x-accel-limit-rate  x-accel-expires  x-accel-charset  x-accel-redirect èÔ½    /usr/scgi_temp€Õ½ ÀÕ½ Ö½ @Ö½ €Ö½   status  x-accel-buffering  x-accel-limit-rate  x-accel-expires  x-accel-charset  x-accel-redirect H×½    /usr/scgi_tempؽ @ؽ €Ø½ Àؽ Ù½   status  x-accel-buffering  x-accel-limit-rate  x-accel-expires  x-accel-charset  x-accel-redirect ¨Ù½    /usr/scgi_temp@Ú½ €Ú½ ÀÚ½ Û½ @Û½   status  x-accel-buffering  x-accel-limit-rate  x-accel-expires  x-accel-charset  x-accel-redirect  ܽ
>
> The actual HTML code does show up after a block of text like the one
> above, but it begins mid-string as though it must be a completely new
> chunk in the buffer. All subs_filter replacements have already occurred
> by the time it reaches the gibberish block.
>
> Using 1.2.1 along with an older version of the module seems to work
> properly as Maxim had suggested. I'm happy to help continue to test this
> in any way possible.
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,229545,229616#msg-229616
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx



More information about the nginx mailing list