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

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

Hello!

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;

instead.

[...]

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx
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 [email protected]. Equifax® is a registered trademark of 
Equifax Inc. All rights reserved.
_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to