uCosminexus Application Server, Web Container Functionality Guide

[Contents][Glossary][Index][Back][Next]

4.10.2 Execution environment settings (When the Smart Composer functionality is used)

This subsection describes the settings to use the gateway specification functionality.

When a gateway such as an SSL accelerator or load balancer is placed between a client and a Web server, you can use the gateway specification functionality to report the gateway information to the Web container and can properly redirect the access to the top page of the Web application or Form authentication window.

Organization of this subsection
(1) How to set
(2) Example settings

(1) How to set

To use the gateway specification functionality:

  1. Specify the gateway host name, port number, and URL scheme for redirect destination for each redirector.
  2. Restart the Web server.

Specify the gateway host name, port number, and URL scheme for redirect destination in the Easy Setup definition file. Specify the following parameters in the <configuration> tag of the logical Web server (web-server):

For details about the Easy Setup definition file and the parameters, see 4.6 Easy Setup definition file in the uCosminexus Application Server Definition Reference Guide.

(2) Example settings

The following figure shows the example settings for the gateway specification functionality:

Figure 4-25 Example settings for the gateway specification functionality

[Figure]

In this example, an SSL accelerator is placed between the client and Web server. Even if a client accesses an SSL accelerator via HTTPS, the SSL accelerator accesses a Web server via HTTP, which causes the Web container to assume that the access uses HTTP. For this reason, HTTP is used for the URL scheme for the top page of the Web application or Form authentication window that is the redirection destination. In this situation, by using the gateway specification function to specify that the scheme be always considered as HTTPS, you can ensure that accesses are properly redirected.

An example of the Easy Setup definition file is described below. Specify On in the JkGatewayHttpsScheme parameter so that the URL scheme for redirect destination is always considered to be HTTPS.

Example of Easy Setup definition file
 
...
<param>
 <param-name>JkGatewayHost</param-name>
 <param-value>host1</param-value>
</param>
<param>
 <param-name>JkGatewayPort</param-name>
 <param-value>4443</param-value>
</param>
<param>
 <param-name>JkGatewayHttpsScheme</param-name>
 <param-value>On</param-value>
</param>
...