DISCLAIMER: The information and links provided on this site are my personal notes, based on my limited experience installing, using, and deinstalling Oracle databases and application servers on a variety of computers using Windows NT/2000/XP operating systems. The installation and deinstallation procedures found here can cause irreversible loss of data and may damage your operating system. However, you are welcome to use them AT YOUR OWN RISK. I am in no way responsible for data you lose or operating systems you damage or destroy.
The following steps outline the set-up of an IP-based Virtual Host on an OracleAS 10g application server. This how-to is for configurations using Web Cache.
The following are required before creating a virtual host on OracleAS 10g:
In Enterprise Manager 10g, open the Application Server Control page for the middle-tier server.
Click-on the HTTP_Server link to open the HTTP server metrics page.
Click-on the Administration link to open the HTTP server administration page.
Click-on the Server Properties link to open the HTTP server properties page.
In the Listening Ports and Addresses section click-on the Add Another Row button.
In the new row, leave the Listening IP Address blank. Enter a unused port number in the Listening Port field. (Hint: the default HTTP server listens on port 7778 for connections from the Web Cache. Use 7779 for your first virtual host and increment by one for each additional virtual host you add.)
At the bottom right of the Server Properties page, click-on the Apply button. A change confirmation page will open.
Click on the Yes button to restart the HTTP server and apply the change. A confirmation page will open stating the HTTP server was restarted successfully.
Click on the OK button. You will be returned to the Server Properties page.
Click-on the HTTP_Serverlink at the top of the Server Properties page to open the HTTP Server Administration page.
Click-on the Virtual Hosts link to open the virtual hosts page.
Click-on the Create button to open the Create Virtual Host wizard.
Click-on the Next button to advance to the General Configuration section of the wizard.
Enter the name of the directory where the files used by your virtual host will be stored in the Document Root Directory field.
Enter the name of virtual host's index file (e.g. index.html) in the Document Index field.
Enter your e-mail address in the Server Administrator E-mail field, or leave as is.
Select IP-based from the Virtual Host Type drop-down menu.
Click-on the Next button to advance to the Addresses section of the wizard.
Enter the URL of your virtual host in the Server Name field.
Select the radio button for the Listen on all the main server IP addresses option.
Click-on the Next button to advance to Ports section of the wizard.
Select the Listen on a specific port option and select the port you specified in Step One from the drop-down menu.
Click-on the Next button to advance to the Protocol section of the wizard.
Select the http - communication does not need to be secure option.
Click-on the Next button to advance to the Error Log section of the wizard.
Leave the error log settings as is.
Click-on the Next button to advance to the Summary section of the wizard.
Review the virtual host information and click on the Finish button to complete the wizard.
A page confirming your change will open. Click on the Yes button to restart the HTTP server.
A page confirming the restart of the HTTP server will open. Click on the OK button to return to the Virtual Hosts page.
Close Enterprise Manager 10g
Open the Web Cache administration page
Click-on the Origin Servers link in the Origin Servers, Sites, and Load Balancing section of the left navigation frame.
Click-on the Add. . . button. An Add Application Web Server window will open.
Enter the URL for the virtual host in the Hostname field.
Enter the port for your virtual host in the Port field.
Copy the information from the default origin server to the remaining fields.
Click-on the Submit button to add the virtual host to the origin server list.
Click on the Site Definitions link in the Origin Servers, Sites, and Load Balancing section of the left navigation frame.
Click-on the Add Site... button. An Add Site window will open.
Enter the URL of your virtual host in the Host Name field.
Enter 80 in the Port Number field.
Leave all other fields and options as-is.
Click-on the Submit button to add the virtual host to the site definitions list.
Click-on the Site-to-Server Mapping link in the Origin Servers, Sites, and Load Balancing section of the left navigation frame.
Select the radio button in the Select column for the default server mapping.
Click-on the Insert Below... button. An Edit/Add Site-to-Server Mapping window will open.
Select the Select from Site Definitions option. Select the virtual host from the list of sites.
Check the box next to the virtual host in the Select Application Web Servers section.
Click-on the Submit button to map the virtual host site to the virtual host.
Click-on the Apply Changes button at the top of the Site-to Server Mappings page. The Cache Operations page will open.
Click-on the Restart button to restart the Web Cache. A new window will open confirming a successful restart.
Close the window and the Web Cache administration page. The virtual host is now ready to serve content from its root directory.