JVM arguments for HTTPS nonProxyHosts

So, I have a pretty loaded env variable for _JAVA_OPTIONS

export _JAVA_OPTIONS="-Dhttp.proxyHost=my-proxy.com -Dhttp.proxyPort=1080 
  -Dhttps.proxyHost=my-proxy.com -Dhttps.proxyPort=1080 
  -DsocksProxyHost=my-socks-proxy.com 
  -Dhttp.nonProxyHosts=\"localhost|127.0.0.1|*.local|*.my-co.com\""

However, I could not get it to ignore the server’s internal URL when I tried it from Scala code using the Apache HTTP client API.

https://username:pwd@server.my-co.com/foo/bar

Do I need to specify another nonProxyHostsfor HTTPS? No such parameter is specified in the documentation. What am I missing? I am on a Mac.

+3
source share
2 answers

I have the same behavior in OS X Yosemite, http.nonProxyHosts do not apply to HTTPS hosts.

0
source

, - , ColdFusion.

, https non proxy host, :

-Dhttps.nonProxyHosts =

, -Dhttp.nonProxyHosts . , Coldfusion. , , Weblogic, , http, https.

ColdFusion , , , ColdFusion Dhttp.nonProxyHosts:

-Dhttp.nonProxyHosts = "-" "

, :

-Dhttp.nonProxyHosts = -

0

Source: https://habr.com/ru/post/1609655/


All Articles