Question about proxy

Francis Daly francis at
Tue Jan 31 07:45:52 UTC 2023

On Mon, Jan 30, 2023 at 10:39:52PM -0500, Saint Michael wrote:

Hi there,

> Can you please elaborate on this:
> "You probably want subs_filter_types to include text/html, and you probably
> want "r" on the subs_filter patterns that are regular expressions rather
> than fixed strings"
> one example will suffice. includes:

    location / {

        subs_filter_types text/html text/css text/xml;
        subs_filter st(\d*) $ ir;
        subs_filter http://$host https://$host;

along with explanations of each directive.

(If that's *not* the module that you are using, then the documentation
for your module should show something similar.)

Although I do see that some later text suggests that text/html content is
always searched, so maybe being explicit about that in subs_filter_types
is not necessary.


Francis Daly        francis at

More information about the nginx mailing list