6.11.2 Execution environment settings (J2EE server settings)
To specify settings for limiting the hosts that are given the access, you must set up the J2EE server.
This section describes the settings and examples for limiting the hosts that are given the access.
- Organization of this subsection
(1) How to set
Specify the settings for limiting the hosts that are given the access in the following parameter within the <configuration> tag of the logical J2EE server (j2ee-server), in the Easy Setup definition file.
- webserver.connector.inprocess_http.permitted.hosts
-
Specifies the host name or IP address of the host that is given the access.
For details on the Easy Setup definition file and the parameters to be specified, see 4.3 Easy Setup definition file in the uCosminexus Application Server Definition Reference Guide.
- Important note
-
The precautions when the host that is given the access is specified in the host name are as follows:
-
You need to specify the host name resolvable in the hosts file or DNS. If the host name is not resolvable, the J2EE server is started with the default settings (access is given for all the hosts).
-
The host name is resolved when the J2EE server is started, and hence, longer time is taken for starting the J2EE server. The changed IP address may not be applied after starting the server.
-
(2) Example settings
The following is the setting example for limiting the hosts that are given the access:
... <param> <param-name>webserver.connector.inprocess_http.permitted.hosts</param-name> <param-value>host1,host2</param-value> </param> ...
In this example, access is given only for host1 and host2 and access from other hosts is not allowed.