You can shorten the IBM OpenPages®
application URL. You might shorten the URL to support privacy or to support some mobile uses of the
URL. To shorten the URL, change the values for properties in various files.
Before you begin
Before you modify the files that are referenced in this procedure, back up the
files.
About this task
In the following example of the default and the shortened URL, the port number of the admin
application server is 10108:
- Default URL
-
http://<server_name>:10108/openpages
- Shortened URL
-
http://<server_name>:10108/
Procedure
-
Log on to the admin application server.
-
Stop the Cognos services. For more information, see Starting and stopping the Cognos services.
-
Edit the following file:
<OP_HOME>/wlp-usr/servers/<server_name>Server<#>/configDropins/overrides/op-apps.xml
-
Look for the following lines:
<!-- Specify an alternative context-root here for the primary OpenPages web application -->
<!-- <web-ext id="taskui" moduleName="taskui" context-root="/" />-->
-
Uncomment the following line:
<web-ext id="taskui" moduleName="taskui" context-root="/" />
-
Go to the
<OP_HOME>/aurora/conf/
directory.
-
For each of the properties files that are listed in the following table, open the file in a
text editor. Change the current value to the new value, and then save the file:
Table 1. Shorten URL, property values
| File name |
Current value |
New value |
|
aurora.properties
|
application.url.path=http\://server_name\:10108/openpages
|
application.url.path=http\://server_name\:10108
|
|
Server<#>-sosa.properties
|
application.url.path=http\://server_name\:10108/openpages
|
application.url.path=http\://server_name\:10108
|
|
Server<#>-sosa.properties
|
application.context=/openpages
|
application.context=
|
Tip: In a load balanced environment, the application.url.path is
the fully qualified domain name of the load balancer and its port number.
-
On the Cognos server, navigate to the following folder:
<COGNOS_HOME>/configuration
-
Open the OpenPagesSecurityProvider_OpenPagesSecurityRealm.properties file
in a text editor or XML editor.
-
Change the current value to the new value, and then save the file:
- Current value
-
openpages.application.url=http\://<server_name>\:10108/openpages
- New value
-
openpages.application.url=http\://<server_name>\:10108
-
Restart the OpenPages application servers.
For more information, see Starting application servers.
-
Start the Cognos services. For more information, see Starting and stopping the Cognos services.
-
After the services are started, log in to OpenPages.
-
Click .
-
Expand the following folders: . Replace the current value with the new value, and
then click Done.
- Current value
-
/openpages/view.resource.do
- New value
-
/view.resource.do
-
Re-create the reporting schema. For more information, see Creating or re-creating the reporting schema.