You can configure the IBM HTTP Server (IHS) to process
non-SSL URL requests as SSL requests. This redirection works for applications
that run in a browser, such as Rational ClearQuest Web.
About this task
Attention: For Eclipse-based applications,
such as Rational ClearCase Remote Client (CCRC), performing the tasks
outlined in this topic disables non-SSL URLs.
The following
variables are used in path names in this topic:
- CMServerHost
- CM Server host name
- RATIONAL_COMMON
- Directory where the Rational common files are installed
Procedure
- Edit the file httpd.conf, which is located
in the following directory:
- On Windows:
- %RATIONAL_COMMON%\IHS\conf
- On the UNIX system and Linux:
- $RATIONAL_COMMON/IHS/conf
- Add or modify the VirtualHost settings
to include the following commands:
- On Windows®:
<VirtualHost *:80>
ServerName CMServerHost
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://CMServerHost$1 [R]
RewriteLogLevel 0
RewriteLog "%RATIONAL_COMMON%\IHS\logs\rewrite.log"
</VirtualHost>
- On the UNIX system and Linux:
<VirtualHost *:80>
ServerName CMServerHost
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://CMServerHost$1 [R]
RewriteLogLevel 0
RewriteLog "$RATIONAL_COMMON/IHS/logs/rewrite.log"
</VirtualHost>
Ensure that the commands are placed appropriately
in the file so that they run before the WebSphere® Application
module and the WebSphere Plug-in module.
- Include the file ssl.conf by
adding the following command:
# include ssl information
Include conf/ssl.conf
- Save your changes and close the file.
- Edit the file ssl.conf to provide the
correct SSL certificate path information. The file ssl.conf is
located in the following directory:
- On Windows:
- %RATIONAL_COMMON%\IHS\conf
- On the UNIX system and Linux:
- $RATIONAL_COMMON/IHS/conf
Save your changes and close the file.
- Edit the file CqServerConn.properties,
which is located in the following directory:
- On Windows:
- %RATIONAL_COMMON%\CM\profiles\profileName\installedApps\dfltCell\TeamEAR.ear\CQWebModule.war\WEB-INF\classes
- On the UNIX system and Linux:
- $RATIONAL_COMMON/CM/profiles/profileName/installedApps/dfltCell/TeamEAR.ear/CQWebModule.war/WEB-INF/classes
- Change the value of the parameter HELP_SERVER_URL from
this:
HELP_SERVER_URL=http://localhost
to
this:
HELP_SERVER_URL=https://localhost
- Save your changes and close the file.
- Restart the IBM HTTP Server.