FAQ

Page Discussion History

Difference between revisions of "HttpFootFilterModule"

(Directives)
(Directives)
Line 20: Line 20:
 
'''footer''' ''string''
 
'''footer''' ''string''
  
default: ``
+
'''default''': ``
  
context: http, server, location
+
'''context''': ''http, server, location''
  
 
It defines the string to be printed at the footer of the request body. This string can have variables embedded.
 
It defines the string to be printed at the footer of the request body. This string can have variables embedded.
Line 29: Line 29:
  
  
footer_types MIME types
+
'''footer_types''' ''MIME types''
  
default: footer_types: text/html
+
'''default''': ''footer_types: text/html''
  
context: http, server, location
+
'''context''': ''http, server, location''
  
 
Defines the MIME types of the files where the footer will be included.
 
Defines the MIME types of the files where the footer will be included.
  
 
=Installation=
 
=Installation=

Revision as of 08:30, 30 November 2012

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