HTTP Substitutions Filter
Replace text in response bodies, using regular expressions and fixed strings, with the HTTP Substitutions Filter dynamic module supported by NGINX, Inc.
Installation Instructions
-
Install the HTTP Substitutions Filter module.
For Amazon Linux, CentOS, Oracle Linux, and RHEL:
$ yum install nginx-plus-module-subs-filter
For Debian and Ubuntu:
$ apt-get install nginx-plus-module-subs-filter
For SLES:
$ zypper install nginx-plus-module-subs-filter
-
Put the
load_module
directive in the top‑level (“main
”) context of NGINX Plus configuration file, nginx.conf:load_module modules/ngx_http_subs_filter_module.so;
-
Perform additional configuration as required by the module.
-
Reload NGINX Plus to enable the module:
$ nginx -t && nginx -s reload