Commit e32bdbca authored by Till Brehm's avatar Till Brehm
Browse files

Merge branch 'vlogger' into 'master'

vlogger for more precise stats with %O for apache >=2.5

this provides a more accurate traffic statistic, since also includes the amount of bytes received according to [apache doc](https://httpd.apache.org/docs/trunk/mod/mod_logio.html)

i could not make work version >= 2.4.7, so i opted to use this for version >= 2.5

See merge request !571
parents fd03f435 d6d2c16e
......@@ -14,7 +14,11 @@ SSLStaplingCache shmcb:/var/run/ocsp(128000)
# ISPConfig Logfile configuration for vlogger
################################################
<tmpl_if name='apache_version' op='>=' value='2.5' format='version'>
LogFormat '%v %h %l %u %t "%r" %>s %S "%{Referer}i" "%{User-Agent}i"' combined_ispconfig
<tmpl_else>
LogFormat "%v %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
</tmpl_if>
CustomLog "| /usr/local/ispconfig/server/scripts/vlogger -s access.log -t \"%Y%m%d-access.log\" /var/log/ispconfig/httpd" combined_ispconfig
<Directory /var/www/clients>
......
......@@ -14,7 +14,11 @@ SSLStaplingCache shmcb:/var/run/ocsp(128000)
# ISPConfig Logfile configuration for vlogger
################################################
<tmpl_if name='apache_version' op='>=' value='2.5' format='version'>
LogFormat '%v %h %l %u %t "%r" %>s %S "%{Referer}i" "%{User-Agent}i"' combined_ispconfig
<tmpl_else>
LogFormat "%v %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
</tmpl_if>
CustomLog "| /usr/local/ispconfig/server/scripts/vlogger -s access.log -t \"%Y%m%d-access.log\" /var/log/ispconfig/httpd" combined_ispconfig
<Directory /var/www/clients>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment