Configuring Apache Tomcat to use HTTP/TCP proxy

The Java™ virtual machine (JVM) must be modified so that Apache Tomcat can use an HTTP/TCP proxy. You do this change by setting some JVM options in the Tomcat startup script.

About this task

To configure Apache Tomcat to use the HTTP/TCP proxy:

Procedure

  1. Configure the Tomcat startup script (%CATALINA_HOME%\bin\catalina.bat, if you use Microsoft Windows; or $CATALINA_HOME/bin/catalina.sh, if you use Linux/UNIX), with the JAVA_OPTS variable to set HTTP/TCP proxy properties as follows:
    SET JAVA_OPTS=%JAVA_OPTS% -Dhttp.proxyHost=<Host name or IP address of HTTP/TCP proxy> -Dhttp.proxyPort=<Port number specified during installation of Rational Test Control Panel and/or editing registration.xml file, for example, 3128>
  2. Save and close the file.
  3. Restart Tomcat for the changes to take effect.
    Note: If you are setting up a HTTP/TCP proxy to support HTTPS, the properties are https.proxyHost and https.proxyPort.

Feedback