5 Configuring the Web Tier

This chapter describes how to configure the Oracle Web Tier.Follow these steps to configure the Oracle HTTP Server on Webhost1 and Webhost2.

This chapter includes the following topics:

5.1 Configuring the Web Tier

This chapter describes how to configure the Oracle Web Tier.

Follow these steps to configure the Oracle HTTP Server on Webhost1 and Webhost2

Prior to configuring the Oracle Web Tier software must have been installed on WEBHOST1 and WEBHOST2 as described in Chapter 4, "Installing the Software."

5.2 Configuring the Oracle Web Tier

The steps for configuring the Oracle Web Tier are the same for both webhost1 and webhost2.

Perform these steps to configure the Oracle web tier:

  1. Change the directory to the location of the Oracle Fusion Middleware Configuration Wizard:

    WEBHOST1> cd ORACLE_HOME/bin
    
  2. Start the Configuration Wizard:

    WEBHOST1> ./config.sh
    

Enter the following information into the configuration wizard:

  1. On the Welcome screen, click Next.

  2. On the Configure Component screen, select: Oracle HTTP Server.

    Ensure that Associate Selected Components with WebLogic Domain is not selected.

    Ensure Oracle Web Cache is NOT selected.

    Click Next.

  3. On the Specify Component Details screen, specify the following values:

    Enter the following values for WEBHOST1:

    • Instance Home Location: /u01/app/oracle/admin/ohs_inst1

    • Instance Name: ohs_inst1

    • OHS Component Name: ohs1

    Enter the following values for WEBHOST2:

    • Instance Home Location: /u01/app/oracle/admin/ohs_inst2

    • Instance Name: ohs_inst2

    • OHS Component Name: ohs2

    Click Next.

  4. On the Configure Ports screen, use a file to specify the ports to be used so that you can bypass automatic port configuration. You do this in order to have all of the ports used by the various components synchronized across hosts, which is advisable but not mandatory in High Availability implementations, Select a file name and then click View/Edit. Enter the following text into the file:

    [OHS]
    #Listen port for OHS component
    OHS Port = 7777
    [OPMN]
    #OPMN Local port no
    OPMN Local Port = 6700
    

    You can find a sample staticports.ini file on installation Disk1 in the stage/Response directory.

    Click Save, then click Next.

  5. On the Specify Security Updates screen, specify these values:

    • Email Address: The email address for your My Oracle Support account.

    • Oracle Support Password: The password for your My Oracle Support account.

    Select: I wish to receive security updates via My Oracle Support.

    Click Next.

  6. On the Installation Summary screen, review the selections to ensure that they are correct. If they are not, click Back to modify selections on previous screens.

    Click Install.

    On the Configuration screen, the wizard launches multiple configuration assistants. This process can be lengthy. When it completes, click Next.

    On the Installation Complete screen, click Finish to confirm your choice to exit.

5.2.1 Validating the Installation

After the installation is completed, check that you can access the Oracle HTTP Server home page using the following URL:

http://webhost1.mycompany.com:7777/

5.3 Configuring Oracle HTTP Server with the Load Balancer

Configure your load balancer to route all HTTP requests to the hosts running Oracle HTTP Server, that is, WEBHOST1 and WEBHOST.

You do not need to enable sticky session (insert cookie) on the load balancer when Oracle HTTP Server is the front end to Oracle WebLogic Server. You need sticky session if you are going directly from the load balancer to Oracle WebLogic Server, which is not the case in the topology described in this guide.

Also, set Monitors for HTTP.

5.4 Configuring Virtual Hosts

In order for Oracle Identity Management Suite to work with the load balancer, you must create two virtual hosts.

To do so, create a file called virtual_hosts.conf in ORACLE_INSTANCE/config/OHS/component/moduleconf.

On WEBHOST1, add the following entries to the file:

NameVirtualHost *:7777
<VirtualHost *:7777>
    ServerName https://sso.mycompany.com:443
    RewriteEngine On
    RewriteOptions inherit
    UseCanonicalName On
</VirtualHost>

5.5 Validating the Installation

Once the installation is completed check that the it is possible to access the Oracle HTTP Server via the following URL's:

http://webhost1.mycompany.com:7777/

http://webhost2.mycompany.com:7777/

https://sso.mycompany.com/