[Tomcat] Exluding IPs from Proxyserver

C

Christine Mayer

Hi, Iam using a Tomcat server (only for development) on my local pc,
within a company network that is using a proxy server. Problem: My
application does http requests to a server were a proxy is required,
as well as requests to an
IP were no proxy is required / allowed. I added these 2 lines to my
catalina.properties file:

http.proxyPort=<MYPROXY_PORT>
http.proxyHost= <MYPROXY_URL>

If I add these lines, the service that requires the proxy works,
however the other service does not work -
and vice versa.

Is there a way to configure Tomcat so that I may use a proxy, but
exlude certain URLS, just like you can do in a browser?

Thanks in advance,

Christine
 
M

moonkev

Hi, Iam using a Tomcat server (only for development) on my local pc,
within a company network that is using a proxy server. Problem: My
application does http requests to a server were a proxy is required,
as well as requests to an
IP were no proxy is required / allowed. I added these 2 lines to my
catalina.properties file:

http.proxyPort=<MYPROXY_PORT>
http.proxyHost= <MYPROXY_URL>

If I add these lines, the service that requires the proxy works,
however the other service does not work -
and vice versa.

Is there a way to configure Tomcat so that I may use a proxy, but
exlude certain URLS, just like you can do in a browser?

Thanks in advance,

Christine

Hi christsine,

you need to use the nonProxyHosts system property. You can use a |
(pipe) to separate the hosts.

-Kevin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,539
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top