HTTP sub directives

sub_filter_once (http-sub)

Controls whether each configured search string is replaced once or repeatedly.

Formal Syntax & Structure

nginx syntaxnginx
sub_filter_once on | off;

Parameters & Attributes

NameTypeDescription
stateon | offDefault on: replace each configured search string once; off allows repeat matches.

Working Example

Example Snippetnginx
sub_filter_once off;
Nginx Reference