diff -Naur mod_log_sql-1.101-rs4/mod_log_sql.c mod_log_sql-1.101-rs5/mod_log_sql.c --- mod_log_sql-1.101-rs4/mod_log_sql.c 2008-03-30 23:50:52.000000000 +0200 +++ mod_log_sql-1.101-rs5/mod_log_sql.c 2008-03-30 23:49:23.000000000 +0200 @@ -642,7 +642,6 @@ /* These defaults are overridable in the httpd.conf file. */ cls->transfer_log_format= apr_pstrcat(p,DEFAULT_TRANSFER_LOG_FMT,NULL); - cls->notes_table_name = apr_pstrcat(p,DEFAULT_NOTES_TABLE_NAME,NULL); cls->hin_table_name = apr_pstrcat(p,DEFAULT_HIN_TABLE_NAME,NULL); cls->hout_table_name = apr_pstrcat(p,DEFAULT_HOUT_TABLE_NAME,NULL); @@ -846,7 +845,15 @@ global_config.createtables = 1; } - + else { + /* + * lets make transfer_tablename overrideable via notes in the request_rec + * so other mass-virtual-hosting modules can easily make use of this module + */ + if(transfer_tablename==NULL) + transfer_tablename=apr_table_get(orig->notes,"LogSQLTransferLogTable"); + } + /* Do we have enough info to log? */ if (!transfer_tablename) { return DECLINED;