HttpFootFilterModule
Contents |
Synopsis
This is a module that is distributed with Tengine which is a distribution of Nginx that is used by the e-commerce/auction site Taobao.com. This distribution contains some modules that are new on the Nginx scene.The ngx_http_footer_filter_module is one of them.
This module implements a body filter that adds a given string to the page footer.
You might say that it provides a particular case of the http sub module in the sense that it adds something to the footer. You can do the same using the http sub module but using the footer filter should be faster since there's no string matching done on the request body.
Directives
footer string
default: ``
context: http, server, location
It defines the string to be printed at the footer of the request body. This string can have variables embedded.
footer_types MIME types
default: footer_types: text/html
context: http, server, location
Defines the MIME types of the files where the footer will be included.
Installation
- Clone the git repo.
git clone git://github.com/taobao/nginx-http-footer-filter.git
- Add the module to the build configuration by adding --add-module=/path/to/nginx-http-footer-filter.
- Build the nginx binary.
- Install the nginx binary.
- Configure contexts where footer filter is enabled.
- Done.










