Package: libapache-mod-jk / 1:1.2.46-0+deb9u1

0002-debianize-log-directory.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Author: Arnaud Vandyck <avdyk@debian.org>
Author: Damien Raude-Morvan <drazzib@debian.org>
Last-Update: 2011-07-13 
Description: Debianize log directory (in source code and default configuration)
--- a/conf/httpd-jk.conf
+++ b/conf/httpd-jk.conf
@@ -16,26 +16,21 @@
 # Configuration Example for mod_jk
 # used in combination with Apache 2.2.x
 
-# Change the path and file name of the module, in case
-# you have installed it outside of httpd, or using
-# a versioned file name.
-LoadModule jk_module modules/mod_jk.so
-
 <IfModule jk_module>
 
     # We need a workers file exactly once
     # and in the global server
-    JkWorkersFile conf/workers.properties
+    JkWorkersFile /etc/libapache2-mod-jk/workers.properties
 
     # Our JK error log
     # You can (and should) use rotatelogs here
-    JkLogFile logs/mod_jk.log
+    JkLogFile /var/log/apache2/mod_jk.log
 
     # Our JK log level (trace,debug,info,warn,error)
     JkLogLevel info
 
     # Our JK shared memory file
-    JkShmFile logs/mod_jk.shm
+    JkShmFile /var/log/apache2/jk-runtime-status
 
     # Define a new log format you can use in any CustomLog in order
     # to add mod_jk specific information to your access log.
--- a/native/apache-2.0/mod_jk.c
+++ b/native/apache-2.0/mod_jk.c
@@ -98,8 +98,8 @@
 #include "jk_shm.h"
 #include "jk_url.h"
 
-#define JK_LOG_DEF_FILE             ("logs/mod_jk.log")
-#define JK_SHM_DEF_FILE             ("logs/jk-runtime-status")
+#define JK_LOG_DEF_FILE             ("/var/log/apache2/mod_jk.log")
+#define JK_SHM_DEF_FILE             ("/var/log/apache2/jk-runtime-status")
 #define JK_ENV_REMOTE_ADDR          ("JK_REMOTE_ADDR")
 #define JK_ENV_REMOTE_PORT          ("JK_REMOTE_PORT")
 #define JK_ENV_REMOTE_HOST          ("JK_REMOTE_HOST")