Configure Virtual Hosts For each virtual host or site name used add an entry Configure mod_wl_ohs After installing and configuring Oracle HTTP Server, Restart Oracle HTTP Server Restart the Oracle HTTP Server using the following

Configuring High Availability for Web Tier Components 9-11

15. Click Install.

16. In the Configuration screen, multiple configuration assistants are launched in succession. When this process completes, click Next. The Installation Complete screen appears.

17. Click Finish.

Validate the Installation Validate the installation using the following URL to access the Oracle HTTP Server home page: http:webhost1:7777

9.2.9.2.1 Configure Virtual Hosts For each virtual host or site name used add an entry

to the Oracle HTTP server configuration. Create a file called virtual_hosts.conf file located in the ORACLE_INSTANCEconfigOHSohs_component_name moduleconf directory as follows: NameVirtualHost :7777 VirtualHost :7777 ServerName http:myapp.mycompany.com:80 RewriteEngine On RewriteOptions inherit UseCanonicalName On VirtualHost If you are using SSLSSL Termination : NameVirtualHost :7777 VirtualHost :7777 ServerName https:myapp.mycompany.com:443 RewriteEngine On RewriteOptions inherit UseCanonicalName On VirtualHost

9.2.9.2.2 Configure mod_wl_ohs After installing and configuring Oracle HTTP Server,

link it to any defined WebLogic managed servers by editing the mod_wl_ohs.conf file located in ORACLE_INSTANCEconfigOHSohs_name directory. The following is an example of mod_wl_ohs.conf entries: LoadModule weblogic_module ORACLE_HOMEohsmodulesmod_wl_22.so IfModule mod_weblogic.c WebLogicCluster apphost1.mycompany.com:7050, apphost2.mycompany.com:7050 Debug ON WLLogFile u01apporacleadminWL1logsmod_wl_ohs.log MatchExpression .jsp IfModule Location weblogic SetHandler weblogic-handler WebLogicCluster apphost1.mycompany.com:7050,apphost2.com:7050 Debug ERR WLLogFile u01apporacleadminWL1logsmod_wl_ohs.log DefaultFileName index.jsp Location 9-12 Oracle Fusion Middleware High Availability Guide These examples show two different ways of routing requests to Oracle WebLogic managed servers: ■ The ifModule block sends any requests ending in .jsp to the WebLogic managed server cluster located on Apphost1 and Apphost2. ■ The Location block sends any requests with URLs prefixed by weblogic to the WebLogic managed server cluster located on Apphost1 and Apphost2.

9.2.9.2.3 Restart Oracle HTTP Server Restart the Oracle HTTP Server using the following

commands: opmnctl restartproc process-type=OHS

9.2.9.2.4 Validate the Oracle HTTP Server Configuration Validate the configuration using