Skip to content

Add netflow monitor function to nginx. Useful for http accounting based on nginx configuration logic ( server / location / or anything else).

License

Notifications You must be signed in to change notification settings

renren/ngx_http_accounting_module

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Configure ngx_http_accounting_module as nginx module with --add-module when build nginx.

cd /path/to/nginx-src/

git clone https://github.com/Lax/ngx_http_accounting_module.git -b v0.2

./configure --add-module=/path/to/ngx_http_accounting_module

make && make install

Configuration

Edit your nginx.conf.

Example:

http{
    http_accounting  on;   # turn on accounting function
    ...
    server {
        server_name example.com;
        http_accounting_id  accounting_id_str;   # set accounting_id based on server
        ...
        location / {
            http_accounting_id  accounting_id_str;    # set accounting_id based on location
            ...
        }
    }
}

Usage

This module write statistics to syslog. You should edit your syslog configuration.

For sample configuration / utils, see: Lax/ngx_http_accounting_module-utils

Branches

  • master : new feathers
  • v2-freeze-20110526 : works with nginx version(0.7.xx, 0.8.xx), nginx 0.9 is not tested. didn't work with nginx above 1.0.x.

Author

Liu Lantao Github

License

GPLv3

About

Add netflow monitor function to nginx. Useful for http accounting based on nginx configuration logic ( server / location / or anything else).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 87.1%
  • C++ 12.9%