Procedure
- Stop your Tomcat server.
- Edit the /usr/share/tomcat/conf file.
-
Add the following lines, changing the parameters to match with your
configuration:
[Tomcat Proxy Property] -Dhttp.proxySet=true -Dhttp.proxyHost=http(s)://proxy.server.com # Specify the host name or IP address of the proxy. You can use this parameter for http and https host names. -Dhttp.proxyPort=3128 # Specify the port number of the proxy server. -Dhttp.nonProxyHost=localhost|host.mydomain.com|192.168.0 # Specify a list of hosts separated by "|" that do not require access through the proxy server.
- Restart your Tomcat server.