A nginx module to add given content to the end of the response according to the condition specified.
C
Switch branches/tags
Latest commit 6969fbe Oct 24, 2014 @flygoast Fixed README.md.
Permalink
Failed to load latest commit information.
README.md
config
ngx_http_footer_if_filter.c

README.md

NGINX HTTP Footer If Filter Module

Introduction

The ngx_http_footer_if_filter_module is used to add given content to the end of the response according to the condition specified.

Synopsis

    location / {
        footer_if ($request_method = 'FOO') $arg_foo;
        root html;
    }

Directives

  • syntax: footer_if (condition) $footer
  • default: --
  • context: http, server, location

The specified condition is evaluated. If true, the value of $footer variable would be added to the end of the response. The syntax of condition is the same as it in the if directive in rewrite module.

Installation

    cd nginx-**version**
    ./configure --add-module=/path/to/this/directory
    make
    make install

Status

This module is compatible with following nginx releases:

  • 1.2.6
  • 1.2.7

Others are not tested.

Author

FengGu flygoast@126.com