My Oracle Support Banner

How to Create Virtual Host Specific to OC4J Applications (Doc ID 389819.1)

Last updated on JUNE 29, 2022

Applies to:

Oracle HTTP Server - Version to [Release AS10gR2 to AS10gR3]
Information in this document applies to any platform.
Oracle Containers for J2EE - Version: to


How To Create Virtual Host Specific to OC4J Applications?

This document was written primarily for Oracle Application Server 10g Release 2 (10.1.2), though it is applicable to any mod_oc4j installation. There is some 10.1.3 information included to allow this setup to work as the end of Section II. However, if using Oracle Application Server 10g Release 3 (10.1.3), there is new functionality which adds some flexibility. In the new you may add more applications on-the-fly (i.e. without restarting OHS) to a given VirtualHost provided you use the same Routing ID. The below document describes this:

<Note:739881.1> How To Restrict Web Application Access By VirtualHost Using Dynamic Mount Points

If using version 10.1.3, it is recommended to implement the dynamic method.


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
 Step I - Creating and Testing Independently Accessible VirtualHosts
 Step II - Associate OC4J Application to a Virtual Host
 Special Instructions for Oracle Application Server 10g Release 3 (10.1.3)
 Step III (Optional) - Custom Error Messaging for Incorrect Access

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