Configuring the endpoint (Apache Tomcat)
For the Apache Tomcat server, configure the endpoint of the application resources in the server.xml file.
About this task
Procedure
In the server.xml file in the conf directory
of your Apache Tomcat installation, add an entry for each property
in the <context> section of the corresponding
application. Each entry should have the following syntax:
<Environment name="JNDI_property_name" value="property_value" type="property_type" override="false"/>
Where:
- JNDI_property_name is the name of the property that you are adding.
- property_value is the value of the property that you are adding.
- property_type is the value of the type of property that you are adding.
Example of setting server.xml properties for configuring the endpoint
This example shows the settings of the properties in the server.xml file that are required for configuring the endpoint of the application resources.In the context section of the MobileFirst Operations Console application:
<Environment name="ibm.worklight.admin.endpoint" value="https://wrklght.net:443/worklightadmin"
type="java.lang.String" override="false"/></p>
For ibm.worklight.admin.endpoint, you can use the asterisk (*) character as wildcard for specifying that the MobileFirst Administration services use the same value as MobileFirst Operations Console. For example, *://*:*/wladmin means use the same protocol, host, and port as MobileFirst Operations Console, but use wladmin as context root.
In the <context> section of the MobileFirst Administration Services application, you can write:
<Environment name="ibm.worklight.admin.proxy.protocol" value="https" type="java.lang.String"
override="false"/>
<Environment name="ibm.worklight.admin.proxy.host" value="wrklght.net" type="java.lang.String"
override="false"/>
<Environment name="ibm.worklight.admin.proxy.port" value="443" type="java.lang.Integer" override="false"/>