Tuesday, May 19, 2009

Setting a proxy server in Tomcat

Add the following lines to the catalina.properties file (N.B. These settings are for Unix systems. It may be different for Windows.)

http.proxyHost=[proxy ip address or dns]
http.proxyPort=
[proxy port]
http.nonProxyHosts=
[all hosts for which a proxy is not required (delimit each host with a '|']

Example:
http.proxyHost=10.113.49.49
http.proxyPort=8080
http.nonProxyHosts=localhost|10.*

No comments:

Post a Comment