Bypass Proxy for selected endpoints/domain

8.2SP7

Hello Community,

I am trying to bypass proxy for a webservice connector, the environment uses Proxy for external applications and has to Bypass the proxy for internal applications.

I have tried adding nonProxy into Java_Opts as below which did not work

JAVA_OPTS="-Dhttps.nonProxyHosts=ing.net -Dhttp.nonProxyHosts=domain.com -Dhttp.proxyPort=<PORT> -Dhttp.proxyHost=proxy2.com -Dhttp.proxyPort=<PORT>"

How can we manage both Proxy and making sure for selected endpoints/domain proxy is Bypassed. Please share if you have any sample config , Is there a way to setup in application.xml ?

Thanks

try something like below

export JAVA_OPTS=“$JAVA_OPTS -Dhttp.proxyHost=”
export JAVA_OPTS=“$JAVA_OPTS -Dhttp.proxyPort=”
export JAVA_OPTS=“$JAVA_OPTS -Dhttp.nonProxyHosts=*.company.com|abcd”

@vishal_kejriwal1 Thank you for the response, what is ‘abcd’ after pipe ?

hostnames separated by pipe

Thank you for the response @vishal_kejriwal1 in ideal scenario what you suggested should work via JAVA_OPTS setup, but our environment is not recognizing the nonProxy entry from tomcat.conf file.

Solution:

IIQ about (https:///debug/about.jsf) will have the proxy and non-Proxy host information. IIQ is setup to read from tomcat.conf or setenv.bat or some custom file to read this information. In our case this is a custom defined file (/opt/rh/jws5/root/usr/x/x/x) where the JAVA_OPTS is read from when you add nonProxy host it will reflect in IIQ about page post restart, which is the confirmation.

JAVA_OPTS="$JAVA_OPTS -Dhttp.nonProxyHosts=hostname1\|hostname2\|hostname3\|*.company.com"

Try it with tomcat conf file and other locations where Java is recognized or look for the custom file entry in your environment.

Thanks for update Shiva.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.