Specify the key as follows:
key-name value
Define the action of the redirector.
Key name | Contents | Default value |
---|---|---|
JkConnectTimeout | Specify the timeout value used for connecting to the Web container when a request is sent. Specify the timeout value as an integer (units: seconds) from 0 to 3600. If you specify a non-numeric value, or a numeric value outside the range, a message will be output and the default value will be used. If you set the timeout as 0 or a time period longer than the resend timer of data transmission in TCP, the timeout value becomes the timeout value of TCP. In such a case, a message indicating that an invalid timeout value has been specified will not be output. | 30 |
JkGatewayHost | Specify the host name or the IP address of the gateway. When requests without a Host header are redirected to files, such as the welcome file, the host name of the Location header URL becomes the specified value. | None |
JkGatewayHttpsScheme | When a client request uses https as a scheme, and the scheme for a Web server will become http by using an SSL accelerator, specify On. If On is specified, https is assumed to be used as the scheme for requests sent to the Web server. If you specify Off, no action occurs. | Off |
JkGatewayPort | Specify the port number of the gateway. If a request has no Host header and the request is to be redirected to a location such as a welcome file, the port number portion of the URL that is specified in the Location header becomes the specified value. Always specify this parameter together with JkGatewayHost. If you specify JkGatewayHost and omit this parameter, an access via http uses 80, and an access via hppts uses 443. | None |
JkLogFileDir | Specify the output location directory of the log file. In Windows, specify either as a relative path or as an absolute path. In UNIX, specify as an absolute path.
If the same value has been specified in JkLogFilePrefix and JkTraceLogFilePrefix, you need to specify a value different from JkTraceLogFileDir in this key. If you specify the same value, the redirector will not run. |
|
JkLogFileNum | Specify the maximum number of redirector log files. If this number is exceeded, the old log files are overwritten. Specify an integer value in the following range:
| 5 |
JkLogFilePrefix | This is a prefix for the log file name. The actual log file name will be the value specified by this key with serial-number.log added. If the same value has been specified in JkLogFileDir and JkTraceLogFileDir, you need to specify a value different from JkTraceLogFilePrefix in this key. If you specify the same value, the redirector will not run. | hws_redirect |
JkLogFileSize | Specify the size for each redirector log file in bytes. Specify an integer value in the following range:
| 4194304 |
JkLogLevel | Specify the output level of redirector log files. You specify only one log level. You can specify debug, info, error (default value), and emerg. You can specify emerg only in Windows. If you specify a value other than those specified above, the operation will be carried out assuming that error has been specified. | error |
JkModulePriority | When registering an external module other than the redirector in the Cosminexus HTTP Server, specify the execution order of the redirector for the other external modules. The values that can be specified are as follows:
| FIRST |
JkOptions | Specify whether to decode the requested URL. Note that this key is used for UNIX.
| ForwardURICompatUnparsed |
JkPrfId | Specify the character string that was specified in the PRF identifier when invoking the PRF daemon. | None |
JkRequestRetryCount | Specify an integer (units: number of times) from 1 to 16 for the retry count to connect to the Web container when a request is sent and the retry count to send requests. The retry count also includes the first establishment of connection and the request sending process. When a timeout occurs, retry occurs in the following cases:
If you set the retry count to an abnormal value, such as a value outside the range or a value that is not an integer, the default value is set. | 3 |
JkSendTimeout | Specify an integer (units: seconds) from 0 to 3600 for the timeout period for sending requests. If you specify a non-numeric value, or a numeric value outside the range, a message will be output and the default value will be used. If you set the timeout as 0 or a time period longer than the resend timer of data transmission in TCP, the timeout value becomes the timeout value of TCP. In such a case, a message indicating that an invalid timeout value has been specified will not be output. | 100 |
JkTraceLog | Specify whether to output the trace log for the maintenance of redirector. Specify On (default value) if trace log is to be output and Off if it is not to be output. | On |
JkTraceLogFileDir | Specify the output destination directory for the maintenance trace log files. In Windows, specify either as a relative path or as an absolute path. In UNIX, specify as an absolute path.
|
|
JkTraceLogFileNum | Specify the maximum number of maintenance trace log files.
If this number is exceeded, the old log files are overwritten. | 4 |
JkTraceLogFilePrefix | Specify the prefix for the maintenance trace log file name. The actual log file name will be the value specified by this key with serial-number.log added. If the same value has been specified in JkLogFileDir and JkTraceLogFileDir, you need to specify a value different from JkLogFilePrefix in this key. If you specify the same value, the redirector will not run. | hws_rd_trace |
JkTraceLogFileSize | Specify the size for each maintenance trace log file as an integer value (units: bytes).
| 16777216 |
JkTranslateBackcompat | The key for compatibility with versions older than 05-05. Specify whether the translate_handler function of the module executed after the redirector is to be invoked from the Cosminexus HTTP Server, if a request sent to the Cosminexus HTTP Server is a URL pattern transferred to the Web container. If you specify On, the translate_handler function of the module executed after the redirector is invoked. If you specify Off, the translate_handler function of the module executed after the redirector is not invoked. | Off |
JkWorkersFile | Specify the file name of the worker definition file. In Windows, specify either as a relative path or as an absolute path. In UNIX, specify as an absolute path.
|
|
LoadModule jk_module "C:\Program Files\Hitachi\Cosminexus\CC\web\redirector\mod_jk.dll"#
JkGatewayHost hostA
JkGatewayHttpsScheme On
JkGatewayPort 443
JkLogLevel error
JkLogFileSize 4194304
JkLogFileNum 5
JkLogFileDir logs
JkLogFilePrefix hws_redirect
JkPrfId prfid
JkTraceLog On
JkTraceLogFileSize 16777216
JkTraceLogFileNum 4
JkTraceLogFileDir logs
JkTraceLogFilePrefix hws_rd_trace
JkTranslateBackcompat Off
JkWorkersFile workers.properties
JkMount /examples/* worker1
LoadModule jk_module /opt/Cosminexus/CC/web/redirector/mod_jk.so
JkWorkersFile /opt/Cosminexus/CC/web/redirector/workers.properties
JkLogLevel error
JkLogFileSize 4194304
JkLogFileNum 5
JkLogFileDir /opt/Cosminexus/CC/web/redirector/logs
JkLogFilePrefix hws_redirect
JkTraceLog On
JkTraceLogFileSize 16777216
JkTraceLogFileNum 4
JkTraceLogFileDir /opt/Cosminexus/CC/web/redirector/logs
JkTraceLogFilePrefix hws_rd_trace
JkMount /examples/* worker1