Skip to content
This repository

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

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src move utils to another project April 20, 2012
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 config
README.rdoc

Installation

Configure ngx_http_accounting_module as nginx module when build nginx.

cd /path/to/nginx-src/
./configure --add-module=/path/to/ngx_http_accounting_module
make && make install

Configuration

Just need to edit your nginx.conf.

Example:

http{
 http_accounting  on;   # turn on accounting function
 ...

 server {
   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

For sample utils, see here: github.com/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.

Something went wrong with that request. Please try again.