Mercurial > hg > nginx-site
diff xml/en/docs/http/ngx_http_sub_module.xml @ 1555:2a79b38f640b
Sub filter: documented support of multiple strings to replace.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 18 Aug 2015 19:14:27 +0300 |
parents | 80aba0439f7d |
children | dc1e51247404 |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_sub_module.xml +++ b/xml/en/docs/http/ngx_http_sub_module.xml @@ -10,7 +10,7 @@ <module name="Module ngx_http_sub_module" link="/en/docs/http/ngx_http_sub_module.html" lang="en" - rev="3"> + rev="4"> <section id="summary"> @@ -33,8 +33,8 @@ configuration parameter. <para> <example> location / { - sub_filter </head> - '</head><script language="javascript" src="$script"></script>'; + sub_filter '<a href="http://127.0.0.1:8080/' '<a href="https://$host/'; + sub_filter '<img src="http://127.0.0.1:8080/' '<img src="https://$host/'; sub_filter_once on; } </example> @@ -56,6 +56,8 @@ location / { Sets a string to replace and a replacement string. The string to replace is matched ignoring the case. The string to replace (1.9.4) and replacement string can contain variables. +Several <literal>sub_filter</literal> directives +can be specified on one configuration level (1.9.4). </para> </directive> @@ -91,8 +93,8 @@ are modified during processing. <context>location</context> <para> -Indicates whether to look for a string to replace once or -several times. +Indicates whether to look for each string to replace +once or repeatedly. </para> </directive>