nginx to nginx proxy header problem.

Igor Sysoev is at
Sat Mar 7 13:10:52 MSK 2009

On Fri, Mar 06, 2009 at 06:57:25PM +0100, Jauder Ho wrote:

> Thanks. Setting gzip_vary off on the backend server seems to do the 
> trick.
> I opted not to set gzip to off as the backend is directly accessible and 
> I still wanted the benefits of having gzip on.

You should set
  gzip       on;
  gzip_vary  [on|off];

only on one nginx. On other you should just set
  gzip       off;

Setting gzip_vary to "on" or "off" depends whether you want to add
the "Veryi: Accept-Encoding" header.

Igor Sysoev

More information about the nginx mailing list