I have a module to measure the bandwidth of based of the *accounting_id* set in the config file.<div><br></div><div>http {</div><div>http_accounting  on;</div><div>....</div><div><br></div><div>server / {</div><div>    ......</div>
<div><br></div><div>    location /path/to/myfile {</div><div>        http_accounting_id  &quot;myfile&quot;;</div><div><br></div><div>        ....</div><div>    }</div><div>}</div><div>}<br><br></div><div>the result is write to syslog device, you may filter the result in syslog.</div>
<div><br></div><div>get the code from google code(<a href="http://code.google.com/p/ltliu-ngx-http-accounting-module">http://code.google.com/p/ltliu-ngx-http-accounting-module</a>),</div><div>or github(<a href="http://github.com/Lax/ngx_http_accounting_module">http://github.com/Lax/ngx_http_accounting_module</a>)</div>
<div><br></div><div><a href="http://code.google.com/p/ltliu-ngx-http-accounting-module/"></a><br><div class="gmail_quote">On Sun, Jan 30, 2011 at 7:40 PM, goles <span dir="ltr">&lt;<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I mean bandwidth used to SERVE file,<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,170777,170781#msg-170781" target="_blank">http://forum.nginx.org/read.php?2,170777,170781#msg-170781</a><br>
<div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Liu Lantao<br>EMAIL: liulantao ( at ) gmail ( dot ) com ; <br>WEBSITE: <a href="http://www.liulantao.com/portal" target="_blank">http://www.liulantao.com/portal</a> .<br>

</div>