Adding a virtual host alias to a WebSphere Application Server v6.0

You can configure virtual host aliases in conjunction with ports for a WebSphere® Application Server v6.0. A virtual host is a single host machine to resemble multiple host machines. An alias is the domain name system (DNS) host name and port number used by a client to form the URL request for a Web application resource (such as a servlet, JSP or HTML page). For example, an alias is the "myhost:8080" portion of the URL http://myhost:8080/servlet/snoop.

Prerequisite

  • Create an enterprise application and target the server to WebSphere Application Server v6.0.
To add a virtual host, follow these steps:
  1. Switch to the J2EE perspective.
  2. In the Project Explorer view, expand the Enterprise Applications folder.
  3. Under the enterprise application project folder for which you add the virtual host, double-click the Deployment Descriptor to open the Application Deployment Descriptor editor.
  4. Select the Deployment tab at the bottom of the editor.
  5. Expand the Virtual Hosts section.
  6. A virtual host name for admin_host and default_host will already be created for you. These are default entries, do not attempt to remove or modify these configurations. In that case, you may skip the below step if the predefined virtual host name satisfies your requirements.
  7. Create a virtual host name.
    1. Click the Add button beside the virtual host name list table. The Add a Host Name Entry dialog box opens.
      Restriction: You cannot add the default host names admin_host or default_host, since these are reserved names by the server.
    2. In the host name field, specify the host name of a single host machine to resemble multiple host machines.
  8. Create a host alias. The host alias list specifies a list of available host names and their respective port numbers that were selected from the virtual host name list.
    1. Beside the Host alias list box, click the Add or Edit button. The Add Host Alias Entry dialog box opens.
    2. In the Host name field, type the IP address or the DNS host name used by a client to request a Web application resource (such as a servlet, JSP file, or HTML page). For example, the host alias name might be myhost.
    3. In the Port field, type the port for which the Web server has been configured to accept client requests. For example, a port might be 8080 in a DNS name of myhost:8080.
  9. Save your changes and close the editor. The substitution variables entries has been added to the deployment descriptor files.
Terms of use | Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.