Welcome! Log In Create A New Profile

Advanced

Re: Question about proxy

Francis Daly
January 31, 2023 02:46AM
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.

https://github.com/yaoweibin/ngx_http_substitutions_filter_module includes:

"""
Example
location / {

subs_filter_types text/html text/css text/xml;
subs_filter st(\d*).example.com $1.example.com ir;
subs_filter a.example.com s.example.com;
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.

Cheers,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Question about proxy

Saint Michael January 29, 2023 03:18PM

Re: Question about proxy

Francis Daly January 30, 2023 08:22PM

Re: Question about proxy

Saint Michael January 30, 2023 10:42PM

Re: Question about proxy

Francis Daly January 31, 2023 02:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 283
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready