Assume all your machines have to connect to internet via proxy server, hence any weblogic external connection has to go through a proxy, so to enable weblogic to connect via a proxy server, use following in the startup parameters,

Check if you can access the external website manually first,

For https,

$ export https_proxy=proxy.myproxy.org:8080

$ wget https://HTTPS_proxytestURL.co.uk

For http

$ export http_proxy=proxy.myproxy.org:8080

$ wget http://HTTP_proxytestURL.co.uk

 

Using WebLogic Administration Console

  1. Go to Domain -> Environment -> Servers -> Admin/Managed Server -> Configuration -> Server Start
  2. Inside Arguments section enter following and save and restart the server.
  3. Specify proxy host/port for both http & https - proxy.myproxy.org, 8080
  4. Specify what should not go via proxy using nonProxyHosts (You don't want local traffic to go via proxy server)
-Dhttp.proxyHost=proxy.myproxy.org -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy.myproxy.org -Dhttps.proxyPort=8080 -Dhttp.nonProxyHosts='localhost|127.*|172.*|*.something.com|*.somewhere.eu|*.world.org' 

 

Using WebLogic Startup Scripts

  1. Open startup script (startManagedWebLogic.sh  or startWebLogic.sh)
  2. Search for  “JAVA_OPTIONS”
  3. Enter following details after that. set JAVA_OPTIONS=%JAVA_OPTIONS% -Dhttp.proxyHost=proxy.myproxy.org -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy.myproxy.org -Dhttps.proxyPort=8080 -Dhttp.nonProxyHosts='localhost|127.*|172.*|*.something.com|*.somewhere.eu|*.world.org'
  4. Save script and restart the WebLogic server