[IE] Re: "sub_filter_once off" not working as advertised?

Jason Whittington Jason.Whittington at equifax.com
Tue Dec 12 17:37:50 UTC 2017

Oh geez - I knew it was going to be something stupid!  Thanks!  :)

-----Original Message-----
From: nginx [mailto:nginx-bounces at nginx.org] On Behalf Of Maxim Dounin
Sent: Tuesday, December 12, 2017 11:07 AM
To: nginx at nginx.org
Subject: [IE] Re: "sub_filter_once off" not working as advertised?


On Tue, Dec 12, 2017 at 04:34:36PM +0000, Jason Whittington wrote:

> I have a rule like the following where I am trying to replace
> instances of /spf/ with /ec/apps/symmetry/spf/.   I’ve used
> sub_filter to do this sort of thing before and had luck with it.
>         location /ec/apps/symmetry/ {
>             proxy_pass http://stl-biz-d2-hrxsymmetry.devapp.c9.equifax.com:55943/;
>             proxy_redirect / https://$host/ec/apps/symmetry/;
>             #sub filter doesn't work if the upstream server returns compressed or zipped content.
>             proxy_set_header Accept-Encoding identity;
>             sub_filter once off;  # doesn’t seem to have an effect

Given the space between "sub_filter" and "once", it is expected to replace "once" with "off" somewhere in the response.  You probably mean to write

              sub_filter_once off;



Maxim Dounin
nginx mailing list
nginx at nginx.org
This message contains proprietary information from Equifax which may be confidential. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e-mail postmaster at equifax.com. Equifax® is a registered trademark of Equifax Inc. All rights reserved.

More information about the nginx mailing list