Most of the directives are allowed once in the global part of the Apache HTTP Server configuration and once in every <VirtualHost> elements. Exceptions from this rule are explicitly listed in the table below.
Most values are inherited from the main server to the virtual hosts. Since version 1.2.20 they can be overwritten in the virtual hosts. Exceptions from this rule are again explicitly listed in the table below. See especially JkMountCopy.
This could occur if the Apache DocumentRoot overlaps with a Tomcat Host's appBase or the docBase of any Context. It could also occur when using the Apache Alias directive with a Tomcat Host's appBase or the docBase of any Context.
Here are the all directives supported by Apache:
Attribute | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
JkWorkersFile |
The name of a worker file for the Tomcat servlet containers.
| ||||||||||||||||||||
JkWorkerProperty |
Enables setting worker properties inside Apache configuration file.
The syntax is the same as in the JkWorkersFile (usually workers.properties).
Simply prefix each line with "JkWorkerProperty" to put it directly into
the Apache config files.
| ||||||||||||||||||||
JkShmFile |
Shared memory file name. Used only on unix platforms.
The shm file is used by balancer and status workers.
The shared memory contains configuration and runtime information for load balancer workers and their members. It is need in order that all Apache children
| ||||||||||||||||||||
JkShmSize |
Size of the shared memory file name.
| ||||||||||||||||||||
JkMountFile |
File containing multiple mappings from a context to a Tomcat worker.
It is usually called uriworkermap.properties.
| ||||||||||||||||||||
JkMountFileReload |
This directive configures the reload check interval in seconds.
The JkMountFile is checked periodically for changes.
A changed file gets reloaded automatically. If you set
this directive to "0", reload checking is turned off.
| ||||||||||||||||||||
JkMount |
A mount point from a context to a Tomcat worker.
| ||||||||||||||||||||
JkUnMount |
An exclusion mount point from a context to a Tomcat worker.
All exclusion mounts are checked after mapping a request
to a tomcat worker. If the request maps also to an exclusion,
it will not be forwarded to tomcat, and instead be served locally.
| ||||||||||||||||||||
JkAutoAlias |
Automatically Alias webapp context directories into the Apache
document space.
| ||||||||||||||||||||
JkMountCopy |
If this directive is set to "On" in some virtual server,
the mounts from the global server will be copied to this
virtual server, more precisely all mounts defined by JkMount
or JkUnMount. The Mounts defined by JkMountFile and JkAutoAlias
will only be inherited, if the VirtualHost does not define
it's own JkMountFile or JkAutoAlias.
| ||||||||||||||||||||
JkWorkerIndicator |
Name of the Apache environment variable that can be used to set worker names
in combination with SetHandler jakarta-servlet.
| ||||||||||||||||||||
JkWatchdogInterval |
This directive configures the watchdog thread interval in seconds.
The workers are maintained periodically by a background thread
running periodically every watchdog_interval seconds. Worker maintenance
checks for idle connections, corrects load status and is able
to detect backend health status.
| ||||||||||||||||||||
JkLogFile |
Full or server relative path to the mod_jk log file.
It will also work with pipe, by using a value of the form "| ...".
| ||||||||||||||||||||
JkLogLevel |
The mod_jk log level, can be debug, info, warn
error or trace.
| ||||||||||||||||||||
JkLogStampFormat |
The mod_jk date log format, using an
extended strftime syntax.
This format will be used for the time stamps in the JkLogFile.
The maximum length of the format is 63 characters.
| ||||||||||||||||||||
JkRequestLogFormat |
Request log format string. See detailed description below.
| ||||||||||||||||||||
JkExtractSSL |
Turns on SSL processing and information gathering by mod_jk
Specifically, mod_jk will export the following environment variables from Apache to Tomcat under these request attributes as per the Servlet Specification 3.0, section 3.8:
In addition mod_jk sends the name of the SSL protocol used as a proprietary
request attribute named
For all other SSL-related variables, use | ||||||||||||||||||||
JkHTTPSIndicator |
Name of the Apache environment variable that contains SSL indication.
| ||||||||||||||||||||
JkSSLPROTOCOLIndicator |
Name of the Apache environment variable that contains the SSL protocol name.
| ||||||||||||||||||||
JkCERTSIndicator |
Name of the Apache environment variable that contains SSL client certificates.
| ||||||||||||||||||||
JkCIPHERIndicator |
Name of the Apache environment variable that contains SSL client cipher.
| ||||||||||||||||||||
JkCERTCHAINPrefix |
Name of the Apache environment (prefix) that contains SSL client chain certificates.
| ||||||||||||||||||||
JkSESSIONIndicator |
Name of the Apache environment variable that contains SSL session.
| ||||||||||||||||||||
JkKEYSIZEIndicator |
Name of the Apache environment variable that contains SSL key size in use.
| ||||||||||||||||||||
JkLocalNameIndicator |
Name of the Apache environment variable which can be used to overwrite
the forwarded local name.
Use this only if you need to adjust the data (see the
proxy documentation).
| ||||||||||||||||||||
JkIgnoreCLIndicator |
Name of the Apache environment variable which forces to
ignore an existing Content-Length request header. This can be
used to make mod_jk conpatible with mod_deflate request body
inflation (see below).
| ||||||||||||||||||||
JkLocalAddrIndicator |
Name of the Apache environment variable which can be used to overwrite
the forwarded local IP address.
Use this only if you need to adjust the data (see the
proxy documentation).
| ||||||||||||||||||||
JkLocalPortIndicator |
Name of the Apache environment variable which can be used to overwrite
the forwarded local port.
Use this only if you need to adjust the data (see the
proxy documentation).
| ||||||||||||||||||||
JkRemoteHostIndicator |
Name of the Apache environment variable which can be used to overwrite
the forwarded remote (client) host name.
Use this only if you need to adjust the data (see the
proxy documentation).
| ||||||||||||||||||||
JkRemoteAddrIndicator |
Name of the Apache environment variable which can be used to overwrite
the forwarded remote (client) IP address.
Use this only if you need to adjust the data (see the
proxy documentation).
| ||||||||||||||||||||
JkRemotePortIndicator |
Name of the Apache environment variable which can be used to overwrite
the forwarded remote (client) IP address.
Use this only if you need to adjust the data (see the
proxy documentation).
| ||||||||||||||||||||
JkRemoteUserIndicator |
Name of the Apache environment variable which can be used to overwrite
the forwarded user name.
Use this only if you need to adjust the data (see the
proxy documentation).
| ||||||||||||||||||||
JkAuthTypeIndicator |
Name of the Apache environment variable which can be used to overwrite
the forwarded authentication type.
Use this only if you need to adjust the data (see the
proxy documentation).
| ||||||||||||||||||||
JkOptions |
Set one of more options to configure the mod_jk module. See below for
details about this directive.
| ||||||||||||||||||||
JkEnvVar |
Adds a name and an optional default value of environment variable
that should be sent to servlet-engine as a request attribute.
If the default value is not given explicitly, the variable
will only be send, if it is set during runtime.
| ||||||||||||||||||||
JkStripSession |
If this directive is set to On in some virtual server,
the session IDs |