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