]>
Commit | Line | Data |
---|---|---|
425dbde7 ER |
1 | # $Id$ |
2 | LoadModule jserv_module modules/mod_jserv.so | |
3 | ||
4 | <IfModule mod_jserv.c> | |
2d07f973 ER |
5 | # Whether Apache must start Apache JServ or not (On=Manual Off=Autostart) |
6 | # Syntax: ApJServManual [on/off] | |
3594e57a | 7 | ApJServManual on |
6be7581a | 8 | |
2d07f973 ER |
9 | # Log file for this module operation relative to Apache root directory. |
10 | # Set the name of the trace/log file. To avoid possible confusion about | |
11 | # the location of this file, an absolute pathname is recommended. | |
12 | # | |
13 | # This log file is different than the log file that is in the | |
14 | # jserv.properties file. This is the log file for the C portion of Apache | |
15 | # JServ. | |
16 | # | |
17 | # On Unix, this file must have write permissions by the owner of the JVM | |
18 | # process. In other words, if you are running Apache JServ in manual mode | |
19 | # and Apache is running as user nobody, then the file must have its | |
20 | # permissions set so that that user can write to it. | |
21 | # Syntax: ApJServLogFile [filename] | |
22 | # Default: "./logs/mod_jserv.log" | |
23 | # Note: when set to "DISABLED", the log will be redirected to Apache error log | |
24 | ApJServLogFile DISABLED | |
6be7581a | 25 | |
2d07f973 ER |
26 | # Log Level for this module |
27 | # Syntax: ApJServLogLevel [debug|info|notice|warn|error|crit|alert|emerg] | |
28 | # Default: info (unless compiled w/ JSERV_DEBUG, in which case it's debug) | |
29 | ApJServLogLevel notice | |
6be7581a | 30 | |
2d07f973 ER |
31 | # Protocol used by this host to connect to Apache JServ |
32 | # (see documentation for more details on available protocols) | |
33 | # Syntax: ApJServDefaultProtocol [name] | |
34 | # Default: "ajpv12" | |
35 | ApJServDefaultProtocol ajpv12 | |
6be7581a | 36 | |
2d07f973 ER |
37 | # Default host on which Apache JServ is running |
38 | # Syntax: ApJServDefaultHost [hostname] | |
39 | # Default: "localhost" | |
40 | #ApJServDefaultHost java.apache.org | |
6be7581a | 41 | |
2d07f973 ER |
42 | # Default port that Apache JServ is listening to |
43 | # Syntax: ApJServDefaultPort [number] | |
44 | # Default: protocol-dependant (for ajpv12 protocol this is "8007") | |
45 | ApJServDefaultPort 8007 | |
6be7581a | 46 | |
2d07f973 ER |
47 | # The amount of time to give to the JVM to start up as well |
48 | # as the amount of time to wait to ping the JVM to see if it | |
49 | # is alive. Slow or heavily loaded machines might want to | |
50 | # increase this value. | |
51 | # Default: 10 seconds | |
52 | # ApJServVMTimeout 10 | |
6be7581a | 53 | |
2d07f973 ER |
54 | # Apache JServ secret key file relative to Apache root directory. |
55 | # Syntax: ApJServSecretKey [filename] | |
56 | # Default: "./conf/jserv.secret.key" | |
57 | # Warning: if authentication is DISABLED, everyone on this machine (not just | |
58 | # this module) may connect to your servlet engine and execute servlet | |
59 | # bypassing web server restrictions. See the documentation for more information | |
60 | #ApJServSecretKey DISABLED | |
3594e57a | 61 | ApJServSecretKey /etc/apache/jserv.secret.key |
6be7581a | 62 | |
2d07f973 ER |
63 | # Mount point for Servlet zones |
64 | # (see documentation for more information on servlet zones) | |
65 | # Syntax: ApJServMount [name] [jserv-url] | |
66 | # Default: NONE | |
67 | # Note: [name] is the name of the Apache URI path to mount jserv-url on | |
68 | # [jserv-url] is something like "protocol://host:port/zone" | |
69 | # If protocol, host or port are not specified, the values from | |
70 | # "ApJServDefaultProtocol", "ApJServDefaultHost" or "ApJServDefaultPort" | |
71 | # will be used. | |
72 | # If zone is not specified, the zone name will be the first subdirectory of | |
73 | # the called servlet. | |
74 | # Example: "ApJServMount /servlets /myServlets" | |
75 | # if user requests "http://host/servlets/TestServlet" | |
76 | # the servlet "TestServlet" in zone "myServlets" on default host | |
77 | # thru default protocol on defaul port will be requested | |
78 | # Example: "ApJServMount /servlets ajpv12://localhost:8007" | |
79 | # if user requests "http://host/servlets/myServlets/TestServlet" | |
80 | # the servlet "TestServlet" in zone "myServlets" will be requested | |
81 | # Example: "ApJServMount /servlets ajpv12://jserv.mydomain.com:15643/myServlets" | |
82 | # if user requests "http://host/servlets/TestServlet" the servlet | |
83 | # "TestServlet" in zone "myServlets" on host "jserv.mydomain.com" using | |
84 | # "ajpv12" protocol on port "15643" will be executed | |
85 | ApJServMount /servlets /root | |
86 | ApJServMount /servlet /root | |
6be7581a | 87 | |
2d07f973 ER |
88 | # Whether <VirtualHost> inherits base host mount points or not |
89 | # Syntax: ApJServMountCopy [on/off] | |
90 | # Default: "On" | |
91 | # Note: This directive is meaningful only when virtual hosts are being used | |
92 | ApJServMountCopy on | |
6be7581a | 93 | |
2d07f973 ER |
94 | # Executes a servlet passing filename with proper extension in PATH_TRANSLATED |
95 | # property of servlet request. | |
96 | # Syntax: ApJServAction [extension] [servlet-uri] | |
97 | # Defaults: NONE | |
98 | # Notes: This is used for external tools. | |
99 | #ApJServAction .jsp /servlets/org.gjt.jsp.JSPServlet | |
100 | #ApJServAction .gsp /servlets/com.bitmechanic.gsp.GspServlet | |
101 | #ApJServAction .jhtml /servlets/org.apache.servlet.ssi.SSI | |
102 | #ApJServAction .xml /servlets/org.apache.cocoon.Cocoon | |
6be7581a | 103 | |
2d07f973 ER |
104 | # Enable the Apache JServ status handler with the URL of |
105 | # "http://servername/jserv/" (note the trailing slash!) | |
106 | # Change the "deny" directive to restrict access to this status page. | |
107 | <Location /jserv/> | |
108 | SetHandler jserv-status | |
6be7581a | 109 | |
e371901d ER |
110 | <IfModule mod_access.c> |
111 | Order deny,allow | |
112 | Deny from all | |
113 | Allow from 127.0.0.1 | |
114 | </IfModule> | |
2d07f973 | 115 | </Location> |
425dbde7 | 116 | </IfModule> |