This Patch adds the version from mod_accounting to the Apache SERVER_SOFTWARE-Environment. They looks like (i like to know what module is loaded ;): Apache/1.3.24 (Unix) mod_gzip/1.3.19.1a PHP/4.1.2 mod_perl/1.26 mod_ssl/2.8.8 OpenSSL/0.9.6c mod_accounting/0.4 To apply this patch do the follow: patch -d /path/to/mod_accounting-0.4/ < /path/to/mod_accounting-add-version.patch Written by Michael Diekmann 29.04.2002 diff -ruNw ./mod_accounting_CSV/mod_accounting.c ./mod_accounting_work/mod_accounting.c --- ./mod_accounting_CSV/mod_accounting.c Mon Apr 29 16:18:15 2002 +++ ./mod_accounting_work/mod_accounting.c Mon Apr 29 16:18:08 2002 @@ -55,6 +55,8 @@ #define DB_MAX ( sizeof( DBDrivers ) / sizeof( DBDrivers[0] )) +#define MOD_ACCOUNTING_VERSION_INFO_STRING "mod_accounting/0.4" + // ------------------- UTILITY FUNCS ----------------- #ifdef DEBUG @@ -498,13 +500,18 @@ ( *DBDrivers[ cfg->DBDriver ].Close )( cfg ); } +static void mod_acct_init( server_rec *server, pool *p ) +{ + ap_add_version_component(MOD_ACCOUNTING_VERSION_INFO_STRING); +} + // ------------------- MOD CONFIG ----------------- /* The configuration array that sets up the hooks into the module. */ module accounting_module = { STANDARD_MODULE_STUFF, - NULL, /* initializer */ + mod_acct_init, /* initializer */ NULL, /* create per-dir config */ NULL, /* merge per-dir config */ acct_make_state, /* server config */