Configuring Tomcat to use a proxy server - 7.0

Talend Data Fabric Installation Guide for Linux

EnrichVersion
7.0
EnrichProdName
Talend Data Fabric
task
Installation and Upgrade
EnrichPlatform
Talend Activity Monitoring Console
Talend Administration Center
Talend Artifact Repository
Talend CommandLine
Talend Data Preparation
Talend Data Stewardship
Talend DQ Portal
Talend ESB
Talend Identity and Access Management
Talend Installer
Talend JobServer
Talend Log Server
Talend MDM Server
Talend MDM Web UI
Talend Repository Manager
Talend Runtime
Talend SAP RFC Server
Talend Studio

Procedure

  1. Stop your Tomcat server.
  2. Set the configuration.
    • On Ubuntu, the configuration file is <TomcatPath>/bin/setenv.sh. If the file does not exist, create it.
    • On other distributions, the configuration file is /usr/share/tomcat/conf.
  3. Add the following lines, changing the parameters to match with your configuration:
    [Tomcat Proxy Property]
    -Dhttp.proxySet=true
    -Dhttp.proxyHost=proxy.server.com # Specify the host name or IP address of your HTTP proxy server. You can use this parameter for http and https host names.
    -Dhttp.proxyPort=YourHttpProxyPort # Specify the port number of your proxy server.
    -Dhttp.nonProxyHost="localhost|host.mydomain.com|192.168.0" # Specify a list of hosts separated by "|" that do not require access through your proxy server.
    -DsocksProxyHost=YourSocksProxyHost # Specify the host name or IP address of your SOCKS proxy server. 
    -DsocksProxyPort=YourSocksProxyPort # Specify the port number of your SOCKS proxy server.
    For more information about proxy configuration, see https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html.
  4. Restart your Tomcat server.