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:
- In a command line, go to <Connect_installdir>\WebServer\bin
-
Run
tomcat9w //ES/ConnectWebServer
- Select the Java tab.
-
In Java Options:
-
Append the following to the arguments list. Enter each statement on a new line:
-Dhttp.proxySet=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-Dhttp.proxyHost=<proxy hostname/ip>
-Dhttp.proxyPort=<proxy port>
-Dhttps.proxyHost=<proxy hostname/ip>
-Dhttps.proxyPort=<proxy port>
Note: All of the above statements are mandatory for proper proxy functionality.
-
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>
-
If the proxy authentication is basic, append:
-Djdk.http.auth.proxying.disabledSchemes=""
-
To exclude particular hosts from being proxied, append:
-Dhttp.nonProxyHosts=*.opentext.com
-
To exclude multiple hosts, use the pipe separator:
-Dhttp.nonProxyHosts=*.opentext.com|*.example1.com|*.example2.com
Note: We recommend not relying only on wildcards as they may not be evaluated accurately. Use the complete hostname, for example:
-Dhttp.nonProxyHosts=octane.microfocus.com|*.microfocus.com|*.example1.com|*.example2.com
-
- Click Apply.
- Select the General tab.
- Click Stop.
- When enabled, click Start.
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:
-
Open the setenv.sh file in the <Connect_installdir>\WebServer\bin folder.
-
Add the following lines, and replace the IP and port numbers with those of your proxy servers:
Copy codeJAVA_OPTS="$JAVA_OPTS -Dhttp.proxySet=true"
JAVA_OPTS="$JAVA_OPTS -Djdk.http.auth.proxying.disabledSchemes=\"\""
JAVA_OPTS="$JAVA_OPTS -Djdk.http.auth.tunneling.disabledSchemes=\"\""
JAVA_OPTS="$JAVA_OPTS -Dhttp.proxyHost=192.168.0.10"
JAVA_OPTS="$JAVA_OPTS -Dhttp.proxyPort=1234"
JAVA_OPTS="$JAVA_OPTS -Dhttps.proxyHost=192.168.0.10"
JAVA_OPTS="$JAVA_OPTS -Dhttps.proxyPort=1234"Note: All of the above lines are mandatory for proper proxy functionality.
-
To exclude internal hosts from the proxy policy, add the following line with internal host or IP list, separated by the | symbol:
Copy codeJAVA_OPTS="$JAVA_OPTS -Dhttp.nonProxyHosts=\"*.example1.com|*.example2.com|127.*|[::1]|localhost\""
-
Restart the Tomcat server.