sub_filter and proxy_pass

Francis Daly francis at daoine.org
Sun Nov 15 12:31:19 UTC 2015


On Sun, Nov 15, 2015 at 06:39:42AM -0500, yuval.carmel at capriza.com wrote:

Hi there,

> I'm using Nginx 1.8 and trying to add a sub_filter but It fails to work (I
> don't see the substitution happenning).

The usual suspects here are "gzip" and "content type".

Your "proxy_set_header Accept-Encoding "";" should avoid the response
from upstream being compressed. Can you see that that is the case?

What do the upstream response headers say the Content-Type is? Is that
listed in your effective sub_filter_types directive?

http://nginx.org/r/sub_filter_types

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list