Need to set proxy server for apache tomcat in RHEL 7.3
<p>I have 3 machines with ips 10.<em>.</em>.56,10.<em>.</em>.57 and 10.<em>.</em>.58. How do I connect all of them using a proxy via tomcat8.</p>

<p>Till now I have made a new file setenv.sh in tomcat8/bin/ folder and wrote the below lines. But it doesn't seem to work.</p>

<p>export JAVA_OPTS="$JAVA_OPTS Dhttp.proxyHost=10.<em>.</em>.56|10.<em>.</em>.57|10.<em>.</em>.58 -Dhttp.proxyPort=8080 -Dhttps.proxyHost=10.<em>.</em>.56|10.<em>.</em>.57|10.<em>.</em>.58 -Dhttps.proxyPort=8080 -Dhttp.nonProxyHosts=localhost"</p>

<p>Let me know if I am following the right process or I need to modify any other file too.</p>