bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / tomcat-connectors-1.2.32-src / conf / httpd-jk.conf
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
7 #
8 #     http://www.apache.org/licenses/LICENSE-2.0
9 #
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.
15
16 # Configuration Example for mod_jk
17 # used in combination with Apache 2.2.x
18
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
23
24 <IfModule jk_module>
25
26     # We need a workers file exactly once
27     # and in the global server
28     JkWorkersFile conf/workers.properties
29
30     # Our JK error log
31     # You can (and should) use rotatelogs here
32     JkLogFile logs/mod_jk.log
33
34     # Our JK log level (trace,debug,info,warn,error)
35     JkLogLevel info
36
37     # Our JK shared memory file
38     JkShmFile logs/mod_jk.shm
39
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
43
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.
48     # Since: 1.2.24
49     # JkOptions +RejectUnsafeURI
50
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.
58     # Since: 1.2.21
59     # JkStripSession On
60
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.
65     # Since: 1.2.27
66     JkWatchdogInterval 60
67
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!
74     <Location /jk-status>
75         # Inside Location we can omit the URL in JkMount
76         JkMount jk-status
77         Order deny,allow
78         Deny from all
79         Allow from 127.0.0.1
80     </Location>
81     <Location /jk-manager>
82         # Inside Location we can omit the URL in JkMount
83         JkMount jk-manager
84         Order deny,allow
85         Deny from all
86         Allow from 127.0.0.1
87     </Location>
88
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
94
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
99
100     # Example for UnMounting requests for all workers
101     # using a simple URL pattern
102     # Since: 1.2.26
103     # JkUnMount /myapp/static/* *
104
105     # Example for UnMounting requests for a named worker
106     # JkUnMount /myapp/images/* balancer
107
108     # Example for UnMounting requests using regexps
109     # SetEnvIf REQUEST_URI "\.(htm|html|css|gif|jpg|js)$" no-jk
110
111     # Example for setting a reply timeout depending on the requets URL
112     # Since: 1.2.27
113     # SetEnvIf Request_URI "/transactions/" JK_REPLY_TIMEOUT=600000
114
115     # Example for disabling reply timeouts for certain request URLs
116     # Since: 1.2.27
117     # SetEnvIf Request_URI "/reports/" JK_REPLY_TIMEOUT=0
118
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
125     # Since: 1.2.26
126
127 </IfModule>