JVM arguments for HTTPS nonProxyHosts

后端 未结 1 1684
广开言路
广开言路 2021-02-09 03:22

So I have a fairly loaded env variable for _JAVA_OPTIONS

export _JAVA_OPTIONS=\"-Dhttp.proxyHost=my-proxy.com -Dhttp.proxyPort=1080 
  -Dhttps.proxy         


        
1条回答
  •  长发绾君心
    2021-02-09 04:13

    This answer is for the main question, and for whatever reason I originally thought this was ColdFusion specific.

    It is rarely documented, but there is an https non proxy host argument you can use:

    -Dhttps.nonProxyHosts=
    

    A lot of documentation states that -Dhttp.nonProxyHosts will cover both. For example, that is the case in Coldfusion. In other cases, say Weblogic, you have to have both arguments, both the http and https versions.

    For ColdFusion, he reason it doesn't work is that ColdFusion is adding quotes to the -Dhttp.nonProxyHosts argument:

    -Dhttp.nonProxyHosts="my-server"
    

    If you don't use quotes you should be good:

    -Dhttp.nonProxyHosts=my-server
    

    0 讨论(0)
提交回复
热议问题