Skip to topic | Skip to bottom
Home
You are here: TWiki > Apex Web > SecurityCategory > SSLandAPEX r11 - 13 May 2007 - 19:42 - PeterLorenzen


Start of topic | Skip to actions

Using SSL with the Oracle HTTP Server

You can configure the Oracle HTTP Server to use SSL encryption between the browser and the HTTP Server by following the steps below. Before you start you have to create a Wallet and load a SSL certificated in it as explained here.

  1. Input your wallet directory in the ssl.conf file, located in ORACLE_HOME\Apache\Apache\conf. Look for SSLWallet. For example:
    SSLWallet file:D:\OracleDb10gcom\myWallet\
  2. Change ssl-disabled to ssl-enabled in opmn.xml located in ORACLE_HOME\opmn\conf
  3. Restart the Apache HTTP server. Start => Programs => (Your Oracle Home) => Oracle HTTP Server or use opmnctl stopall and opmnctl stopall

Now you can use SSL. Try running your application, but remember to change the port to 4443 and replace http with https.

You can also stile run the application without SSL. To prevent this you need to configure the Apache HTTP server to always redirect http requests to https. This can be accomplished in several ways. AntonNielsen suggests putting these lines last in the ORACLE_HOME\Apache\Apache\conf\httpd.conf file:

RewriteEngine On
RewriteCond %{SERVER_PORT} !^4443$
RewriteRule ^/pls/apex/(.*)$ https://apex.corp.wmdata.net/pls/apex/$1 [L,R]

I could not get it working so I did this:

RewriteEngine On
RewriteRule   ^/pls/apex/(.*)$ https://apex.corp.wmdata.net:4443/pls/apex/$1 [L,R]

I am not sure if this will redirect all requests including the ones already in the right format.


Author: PeterLorenzen - 22 Apr 2007

Comments

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r11 < r10 < r9 < r8 < r7 | More topic actions
This site is powered by the TWiki collaboration platformCopyright © 1999-2010 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback