Remove the lines that begin with WebLogicHost and WebLogicPort and add In the Navigator window, expand the Web Tier tree. From the drop down list at the top of the page select Administration - Origin Click Create. Click OK to save the changes. Click Apply

14-56 Oracle Fusion Middleware High Availability Guide

14.6.5.4.2 Configure Virtual Hosts For the site to function properly with the load

balancer, you must add two virtual hosts. You can configure the virtual hosts using Oracle Enterprise Manager Fusion Middleware Control, edit the file ORACLE_ INSTANCEconfigOHSohs1httpd.conf, or edit the virtual_hosts.conf file located in the in ORACLE_INSTANCEconfigOHSohs1moduleconf directory copied from APPHOST1. In a text editor, update the file to change APPHOST1 to APPHOST2: NameVirtualHost :7778 VirtualHost :7778 ServerName http:mysite.mycompany.com:80 RewriteEngine On RewriteOptions inherit UseCanonicalName On VirtualHost VirtualHost :7778 ServerName apphost2.mycompany.com:7777 RewriteEngine On RewriteOptions inherit UseCanonicalName On VirtualHost

14.6.5.4.3 Update Oracle HTTP Server Configuration to be Cluster Aware When the

installation was first created, it was configured so that all Web Logic requests were directed to the initially created Managed Servers residing on APPHOST1. Now that APPHOST2 exists, both the Oracle HTTP Servers on APPHOST1 and APPHOST2 must be made aware of all of the Oracle WebLogic Managed Servers. To make the Oracle HTTP Server aware of APPHOST2, edit files located in the following directory: ORACLE_INSTANCEconfigOHSohs1moduleconf There are different files to edit for Portal, Forms, Reports, and Discoverer, as shown in the following table: Edit the files as follows:

1. Remove the lines that begin with WebLogicHost and WebLogicPort and add

the following lines: WebLogicCluster apphost1:9001,apphost2:9001

2. Change any lines that begin with WebLogicCluster to look similar to this:

WebLogicCluster apphost1:9001,apphost2:9001 For example, change the following: Location portal Product File Portal portal.conf Forms forms.conf Reports reports_ohs.conf Discoverer module_disco.conf Configuring High Availability for Oracle Portal, Forms, Reports, and Discoverer 14-57 SetHandler weblogic-handler WebLogicHost apphost1.mycompany.com WebLogicPort PORT Location to this: Location portal SetHandler weblogic-handler WebLogicCluster apphost1.mycompany.com:PORT,apphost2.mycompany.com:PORT Location Change the following: Location Forms SetHandler weblogic-handler WebLogicCluster apphost1.mycompany.com:PORT Location to this: Location Forms SetHandler weblogic-handler WebLogicCluster apphost1.mycompany.com:PORT,apphost2.mycompany.com:PORT Location Repeat these steps on APPHOST2.

14.6.5.4.4 Change the Web Cache Passwords Web Cache passwords are randomly

generated, however they are required in later stages. It is therefore recommended that the Web Cache passwords be changed from the default value to a new known value. To change the default password, follow these steps:

1. In the Navigator window, expand the Web Tier tree.

2. Click on the component wc1.

3. From the drop down list at the top of the page, select Administration - Passwords.

4. Enter new invalidation and administration passwords, confirm them, and click Apply .

14.6.5.4.5 Configure Web Cache Web Cache is optional for Oracle Forms, Reports and

Discoverer, but mandatory for Oracle Portal. If Web Cache was not configured for APPHOST1, ignore the following Web Cache configuration steps: Log into the Enterprise Manager Console Log into the Enterprise Manager Console using the following URL: http:apphost1.mycompany.com:7001em The default User Name and Password are the same as the WebLogic domain user name and password entered during the installation. Note: The passwords used in this procedure must be the same as those used on APPHOST1. This is required for the web caches to be clustered together in later procedures. 14-58 Oracle Fusion Middleware High Availability Guide Create the Origin Server To create the origin server: 1. In the Navigator Window, expand the Web Tier tree. 2. Click on the component wc1 make sure it is the one associated with APPHOST1.

3. From the drop down list at the top of the page select Administration - Origin

Servers .

4. Click Create.

5. Enter the following information to add the origin server:

6. Click OK to save the changes.

7. Click Apply to save the changes.

Add Origin Server to Existing Site to Server Mapping To add the origin server site to server mapping: 1. In the Navigator Window, expand the Web Tier tree. 2. Click on the component wc1 make sure it is the one associated with APPHOST1.

3. From the drop down list at the top of the page select Administration - Sites.

4. In the Site to Server Mapping section, click on the Host:Port, for example: mysite.mycompany.com:80

5. Click Edit.

6. Select the origin server APPHOST2.mycompany.com:7778 and move it to the selected Origin servers list.

7. Click OK to save the changes.

8. Click Apply to save the changes.

Cluster Web Cache on APPHOST1 and APPHOST2 Follow these steps to cluster Oracle Web Cache on APPHOST1 and APPHOST2: 1. In the Navigator Window, expand the Web Tier tree. Field Value Host APPHOST2.mycompany.com Port 7778 Capacity 100 Protocol HTTP Failover Threshold 5 Ping URL Ping Interval 10 Note: For Oracle Web Cache clustering to function properly, the administration password of each of the Web Caches clustered together must be the same. Configuring High Availability for Oracle Portal, Forms, Reports, and Discoverer 14-59 2. Click on the component wc1 make sure it is the one associated with APPHOST1.

3. From the drop down list at the top of the page select Administration - Cluster.