Skip to content

Commit c2b47ea

Browse files
authored
Merge pull request #2781 from erkia/fix/add-aplog-use-module
Fix logging for Apache 2.4 (again)
2 parents e0ef146 + 45acae4 commit c2b47ea

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

apache2/mod_security2.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@
2525
#include "apr_optional.h"
2626
#include "mod_log_config.h"
2727

28-
/*
29-
* #ifdef APLOG_USE_MODULE
30-
* APLOG_USE_MODULE(security2);
31-
* #endif
32-
*/
33-
3428
#include "msc_logging.h"
3529
#include "msc_util.h"
3630

apache2/modsecurity.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ extern DSOLOCAL char *real_server_signature;
145145
extern DSOLOCAL char *chroot_dir;
146146

147147
extern module AP_MODULE_DECLARE_DATA security2_module;
148+
#ifdef APLOG_USE_MODULE
149+
APLOG_USE_MODULE(security2);
150+
#endif
148151

149152
extern DSOLOCAL const command_rec module_directives[];
150153

0 commit comments

Comments
 (0)