Skip to content

Commit e32bdbc

Browse files
author
Till Brehm
committed
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
2 parents fd03f43 + d6d2c16 commit e32bdbc

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

install/tpl/apache_ispconfig.conf.master

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ SSLStaplingCache shmcb:/var/run/ocsp(128000)
1414
# ISPConfig Logfile configuration for vlogger
1515
################################################
1616

17+
<tmpl_if name='apache_version' op='>=' value='2.5' format='version'>
18+
LogFormat '%v %h %l %u %t "%r" %>s %S "%{Referer}i" "%{User-Agent}i"' combined_ispconfig
19+
<tmpl_else>
1720
LogFormat "%v %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
21+
</tmpl_if>
1822
CustomLog "| /usr/local/ispconfig/server/scripts/vlogger -s access.log -t \"%Y%m%d-access.log\" /var/log/ispconfig/httpd" combined_ispconfig
1923

2024
<Directory /var/www/clients>

server/conf/apache_ispconfig.conf.master

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ SSLStaplingCache shmcb:/var/run/ocsp(128000)
1414
# ISPConfig Logfile configuration for vlogger
1515
################################################
1616

17+
<tmpl_if name='apache_version' op='>=' value='2.5' format='version'>
18+
LogFormat '%v %h %l %u %t "%r" %>s %S "%{Referer}i" "%{User-Agent}i"' combined_ispconfig
19+
<tmpl_else>
1720
LogFormat "%v %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
21+
</tmpl_if>
1822
CustomLog "| /usr/local/ispconfig/server/scripts/vlogger -s access.log -t \"%Y%m%d-access.log\" /var/log/ispconfig/httpd" combined_ispconfig
1923

2024
<Directory /var/www/clients>

0 commit comments

Comments
 (0)