uCosminexus Application Server, Web Container Functionality Guide

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

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

This subsection describes the settings for viewing the top page by specifying the domain name.

When accessing a deployed Web application merely by specifying the domain name in the URL, the top pages of Web applications, such as index.html and index.jsp can be displayed.

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

(1) How to set

To view the top page by specifying the domain name:

  1. Specify the root context.
    The root context is a context in which the name is not specified for the context root. The specification of the root context differs according to the operation mode.
    For defining the context root for the J2EE application, see 9.11.1 Defining the context root of J2EE applications in the uCosminexus Application Server Application Setup Guide.
  2. Specify distribution of requests to the root context in the redirector.
    Specify the distribution of requests to the root context in the Easy Setup definition file.
    For details about the Easy Setup definition file and parameters, see 4.6 Easy Setup definition file in the uCosminexus Application Server Definition Reference Guide.

(2) Example settings

The following is an example of settings for distributing requests to the root context.

To view the top page of a Web application by specifying only the domain name in the URL, specify settings in the URL mapping definition of the redirector in such a way so that the requests are distributed to the root context. For example, to distribute root context to worker1 and /examples to worker2, specify as follows:

Example of Easy Setup definition file
 
...
<param>
 <param-name>JkMount</param-name>
 <param-value>/* worker1</param-value>
 <param-value>/examples/* worker2</param-value>
</param>
...