1 # Licensed to the Apache Software Foundation (ASF) under one or more
2 # contributor license agreements. See the NOTICE file distributed with
3 # this work for additional information regarding copyright ownership.
4 # The ASF licenses this file to You under the Apache License, Version 2.0
5 # (the "License"); you may not use this file except in compliance with
6 # the License. You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 # Configuration Example for mod_jk
17 # used in combination with Apache 2.2.x
19 # Change the path and file name of the module, in case
20 # you have installed it outside of httpd, or using
21 # a versioned file name.
22 LoadModule jk_module modules/mod_jk.so
26 # We need a workers file exactly once
27 # and in the global server
28 JkWorkersFile conf/workers.properties
31 # You can (and should) use rotatelogs here
32 JkLogFile logs/mod_jk.log
34 # Our JK log level (trace,debug,info,warn,error)
37 # Our JK shared memory file
38 JkShmFile logs/mod_jk.shm
40 # Define a new log format you can use in any CustomLog in order
41 # to add mod_jk specific information to your access log.
42 # LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{Cookie}i\" \"%{Set-Cookie}o\" %{pid}P %{tid}P %{JK_LB_FIRST_NAME}n %{JK_LB_LAST_NAME}n ACC %{JK_LB_LAST_ACCESSED}n ERR %{JK_LB_LAST_ERRORS}n BSY %{JK_LB_LAST_BUSY}n %{JK_LB_LAST_STATE}n %D" extended_jk
44 # This option will reject all requests, which contain an
45 # encoded percent sign (%25) or backslash (%5C) in the URL
46 # If you are sure, that your webapp doesn't use such
47 # URLs, enable the option to prevent double encoding attacks.
49 # JkOptions +RejectUnsafeURI
51 # After setting JkStripSession to "On", mod_jk will
52 # strip all ";jsessionid=..." from request URLs it
53 # does *not* forward to a backend.
54 # This is useful, if all links in a webapp use
55 # URLencoded session IDs and parts of the static
56 # content should be delivered directly by Apache.
57 # Of course you can also do it with mod_rewrite.
61 # Start a separate thread for internal tasks like
62 # idle connection probing, connection pool resizing
63 # and load value decay.
64 # Run these tasks every JkWatchdogInterval seconds.
68 # Configure access to jk-status and jk-manager
69 # If you want to make this available in a virtual host,
70 # either move this block into the virtual host
71 # or copy it logically there by including "JkMountCopy On"
72 # in the virtual host.
73 # Add an appropriate authentication method here!
75 # Inside Location we can omit the URL in JkMount
81 <Location /jk-manager>
82 # Inside Location we can omit the URL in JkMount
89 # If you want to put all mounts into an external file
90 # that gets reloaded automatically after changes
91 # (with a default latency of 1 minute),
92 # you can define the name of the file here.
93 # JkMountFile conf/extra/uriworkermap.properties
95 # Example for Mounting a context to the worker "balancer"
96 # The URL syntax "a|b" instantiates two mounts at once,
97 # the first one is "a", the second one is "ab".
98 # JkMount /myapp|/* balancer
100 # Example for UnMounting requests for all workers
101 # using a simple URL pattern
103 # JkUnMount /myapp/static/* *
105 # Example for UnMounting requests for a named worker
106 # JkUnMount /myapp/images/* balancer
108 # Example for UnMounting requests using regexps
109 # SetEnvIf REQUEST_URI "\.(htm|html|css|gif|jpg|js)$" no-jk
111 # Example for setting a reply timeout depending on the requets URL
113 # SetEnvIf Request_URI "/transactions/" JK_REPLY_TIMEOUT=600000
115 # Example for disabling reply timeouts for certain request URLs
117 # SetEnvIf Request_URI "/reports/" JK_REPLY_TIMEOUT=0
119 # IMPORTANT: Mounts and virtual hosts
120 # If you are using VirtualHost elements, you
121 # - can put mounts only used in some virtual host into its VirtualHost element
122 # - can copy all global mounts to it using "JkMountCopy On" inside the VirtualHost
123 # - can copy all global mounts to all virtual hosts by putting
124 # "JkMountCopy All" into the global server