Sidebar

What is the correct syntax for the nonProxyHosts option in system config

0 votes
5.3K views
asked Sep 25, 2013 by gary-t-8719 (14,860 points)
edited Apr 9, 2015 by brandon-w-8204
Also if using -Dhttp.nonProxyHosts java option

1 Answer

0 votes
 
Best answer

The correct syntax would be to surround the hosts with quotes and seperate multiple hosts with a | character.

eg for system configuration "localhost|127.0.0.1|10.*.*.*|etc"

e.g. -Dhttp.nonProxyHosts="localhost|127.0.0.1|10.*.*.*|etc"

Note: When using DNS name a fully qualified name is required as they will not work with a wild card.

Example:

-Dhttp.nonProxyHosts="www.foo.com"

Not 

-Dhttp.nonProxyHosts="*.foo.com"

answered Sep 25, 2013 by gary-t-8719 (14,860 points)
edited Apr 9, 2015 by brandon-w-8204
...