Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Sub_filter: replacing a string containing $

$
0
0
Nginx sub_filter syntax: sub_filter string replacement;

A variable in Nginx is set using the operand $: set $a 'Hello World';

When a $ is present in sub_filter String but not a variable, Nginx will not allow the String e.g.

sub_filter 'data-ng-click="$ctrl.goto 'onclick="location.href=';

I am sure there is a "work around" so that $ctrl is not seen as a variable and just part of the String to be replaced?

Any help would be appreciated

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>