Wrong Traffic Calculation - vlogger
Hi,
downloading a ~50mb file with curl and stopping it after few seconds
curl -D - --limit-rate 20k http://example.com/myfile.pdf -o /dev/null
/var/log/apache2/other_vhosts_access.log example.com:80 1.2.3.4 - - [15/Jul/2014:16:27:28 +0200] "GET /myfile.pdf HTTP/1.1" 200 301184 "-" "curl/7.26.0"
/var/log/ispconfig/httpd/example.com/access.log 1.2.3.4 - - [15/Jul/2014:16:27:28 +0200] "GET /myfile.pdf HTTP/1.1" 200 43669812 "-" "curl/7.26.0"
To Vlogger is passed the size of response in bytes (filesize) instead of the real traffic sent, respectly the directive %B instead of %O
vlogger per domain LogFormat "%v %h %l %u %t "%r" %>s %B "%{Referer}i" "%{User-Agent}i"" combined_ispconfig
other_vhosts_access.log LogFormat "%v:%p %h %l %u %t "%r" %>s %O "%{Referer}i" "%{User-Agent}i"" vhost_combined
This wrong calculation can have an high impact in presence of a Traffic Quota because with few hundred/thousand of forged requests to a mediumsize file the websites will go easily over traffic and so auto disabled.