My Oracle Support Banner

How To Redirect all HTTP Requests To HTTPS Requests in OHS (Doc ID 259576.1)

Last updated on MAY 06, 2024

Applies to:

Oracle HTTP Server - Version 9.0.2 and later
Information in this document applies to any platform.
This document was written for 9i but it also applies to 10g, 11g, and 12c.

Purpose

Set up Oracle HTTP Server configuration to redirect all non-SSL HTTP traffic to the HTTPS port of the same server.

Scope

Having set up a Web Site with SSL, there is often still a way to access it through HTTP. And often it is a good idea to not close down HTTP connectivity but to redirect users to the same URL on HTTPS instead.

In this bulletin we cover how to achieve this with HTTP Server configuration options. We assume that the site has already been switched to HTTPS before, thus all (re)registrations that are involved in getting OracleAS components work as expected after the switch from non-SSL to SSL (SSO, Portal, etc.) have already been done.

We further assume port distribution like this:

The configurations shown below have been tested and verified with OracleAS 10g Release 2 (10.1.2.x) and Oracle AS 10g Release 3 (10.1.3.x), but we assume they should generally work with HTTP Server versions 11g/12c and any other HTTP Server version, too.

Details

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Purpose
Scope
Details
 Three Alternative Ways
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.