Addition#
The module is a filter that adds text before and after a response.
When building from the source code, the module isn't built
by default; it must be enabled with the build option
--with-http_addition_module.
In packages and images from our repositories, the
module is included in the build. Adds the text returned as a result of processing a given subrequest after the response body. An empty string ( Adds the text returned as a result of processing a given subrequest before the response body. An empty string ( Allows adding text in responses with the specified MIME types, in addition to "text/html". The special value "*" matches any MIME type.Configuration Example#
location / {
add_before_body /before_action;
add_after_body /after_action;
}
Directives#
add_after_body#
"") as a parameter cancels addition inherited from the previous configuration level.add_before_body#
"") as a parameter cancels addition inherited from the previous configuration level.addition_types#