Proxy setup

This topic describes how to configure proxy information on Java Virtual Machines (JVMs).

In most cases, connector's data sources contain their proxy settings. For connectors that do not have a specific proxy setup, you can configure the JVM with additional proxy information.

Configure the proxy for Windows

This section describes how to configure Tomcat to use a proxy server in a Windows environment.

To configure the proxy for Windows:

  1. In a command line, go to C:\Program Files\Micro Focus\Connect\WebServer\bin
  2. Version 4.4 and higher: Run tomcat9w //ES/ConnectWebServer

    Earlier versions: Run tomcat8w //ES/ConnectWebServer

  3. Select the Java tab.
  4. In Java Options:

    1. Append the following to the arguments list. Enter each statement on a new line:



      -Dhttp.proxyHost=<proxy hostname/ip>

      -Dhttp.proxyPort=<proxy port>

      -Dhttps.proxyHost=<proxy hostname/ip>

      -Dhttps.proxyPort=<proxy port>

    2. If the proxy requires authentication, also append the following:

      -Dhttp.proxyUser=<proxy username>

      -Dhttp.proxyPassword=<proxy password>

      -Dhttps.proxyUser=<proxy username>

      -Dhttps.proxyPassword=<proxy password>

    3. If the proxy authentication is basic, append:


    4. To exclude particular hosts from being proxied, append:


    5. To exclude multiple hosts, use the pipe separator:


      Note: We recommend not relying only on wildcards as they may not be evaluated accurately. Use the complete hostname, for example: -Dhttp.nonProxyHosts="|*|*|*"

  5. Click Apply.
  6. Select the General tab.
  7. Click Stop.
  8. When enabled, click Start.

Back to top

Configure the proxy for Linux

This section describes how to configure Tomcat to use a proxy server in a Linux environment.

To configure the proxy for Linux:

  1. Create a file named in the WebServer\bin folder.

  2. Add the following lines:

    Copy code
    export CATALINA_OPTS="$CATALINA_OPTS -Dhttp.proxyHost="
                            export CATALINA_OPTS="$CATALINA_OPTS -Dhttp.proxyPort=1234"
                            export CATALINA_OPTS="$CATALINA_OPTS -Dhttps.proxyHost="
                            export CATALINA_OPTS="$CATALINA_OPTS -Dhttps.proxyPort=1234"
  3. In the above lines, replace the IP and port numbers with those of your proxy servers.
  4. Restart the Tomcat server.

Back to top