title: Nginx sub_filter rewrites?
body: <p>I am trying to rewrite body links of a proxied page using something like this:</p>
  <pre><code>    sub_filter http://proxied.page.come http://local.page.com;
      sub_filter_once off;
  </code></pre>
  <p>Is this the way to go at all ?
  What is the difference between the <a href="http://nginx.org/en/docs/http/ngx_http_sub_module.html" rel="noreferrer">sub_filter module</a> and the <a href="https://www.nginx.com/resources/wiki/modules/substitutions/" rel="noreferrer">substitutions_filter</a></p>
  <p>Also can variable be used in the sub_filter delcaration ?</p>