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 -j2 make install
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 ... } } }
-
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.