Wednesday, June 5, 2013

Mod_wl_ohs HTTPS Becomes HTTP, how to fix this?

I was creating a management proxy for my weblogic admin server. Mod_wl_ohs is used. mod_ossl is used. I am using Oracle HTTP Server 11g (version 10.3.6)
During debugging, I found that my https requests often becomes http requests. And that is the reason why my weblogic admin console page does not come up.

Searched internet. There had been no post related to this.
Search through oracle's support site, finally found that it was caused by an Oracle bug. Below is extracted from Oracle notes on this.

Configuring Mod_wl_ohs to use SSL between Oracle HTTP Server and Weblogic Server in FMW 11g (11.1.1.X):

5. On FMW 11.1.1.4 or higher, there is an extra step required to prevent redirects going to http. This problem is documented in Note 1300169.1 HTTPS Request Returns HTTP When Using Redirects Through Mod_wl_ohs.

To prevent this problem:

  • Access the WebLogic Server console
  • Click on ‘Environment’- > 'Servers' -> '<SSL_Managed_Server>' -> 'General' -> 'Advanced'
  • Check the 'WebLogic Plug-In Enabled' box.
  • Click 'Save'
  • Restart the Admin Server or Managed Server depending on which server you are SSL into.
This has been an undocumented change and thus an internal documentation bug filed for a future release.
Bug 11824138 HTTPS REQUEST RETURNS HTTP WHEN USING REDIRECTS THROUGH MOD_WL_OHS

Also if you are planning on accessing /b2bconsole then you need also set 'WebLogic Plug-In Enabled' at the Domain level as well, otherwise you will hit the problem in Note 1335638.1 Accessing /b2bconsole Redirects To HTTP After Configuring Mod_wl_ohs To Use SSL Between Oracle HTTP Server And Weblogic Server
  • Access the WebLogic Server console
  • Click on 'SOA_Domain' -> 'Web Applications'
  • Check the 'WebLogic Plug-In Enabled' box.
  • Click 'Save'
  • Restart the soa_server1 Managed Server.
6. Test you can access the application via https:
https://host.domain:port/contextroot
For example:  https://ohs.uk.oracle.com:4448/helloWorld

No comments:

Post a Comment