Enabling WL-Proxy-SSL HTTP header in WebLogic

Scenario :


Weblogic server will be always behind the LoadBalancer or Apache layer. Most of the time the SSL's will be either offloaded in LoadBalancer or Apache layer.  To construct applicaitons URL's with the right protocol will be a challenge while using weblogic as application server. 

To achieve this scenario we have to enable WL-Proxy-SSL and WebLogic Plug-In Enabled.


Solution:

- Update the LoadBalancer configurations/iRules to set the RequestHeader WL-Proxy-SSL to true.

- Follow the below steps to set the WebLogic 'Plugin Enabled' flag to Yes. (Following steps are based on the weblogic version 12.1.2)

   - Login into weblogic console
   - Click on Lock & Edit button 
   - Click on the domain name
   - Under Configurations tab go to "Web Applications" sub tab
   - Select the check box "WebLogic Plugin Enabled" and click "save" button
   - Finally click on "Activate Changes" button

- Enable the below property in Weblogic Admin server startup by updating the <weblogc-home>/user_projects/domains/<your-domain>/bin/startWebLogic.sh


Add the below highlighted line right after end of if condition in startWeblogic.sh file.

if [ "${PRODUCTION_MODE}" = "true" ] ; then
        WLS_DISPLAY_MODE="Production"
else
        WLS_DISPLAY_MODE="Development"
fi



JAVA_OPTIONS="-Dweblogic.http.isWLProxyHeadersAccessible=true  ${JAVA_OPTIONS}"

- Restart the Weblogic Admin server and any Managed servers in the cluster

Comments

Popular posts from this blog

CSM Quiz -2

CSM Quiz -1