Configuring virtual hosts

Why and when to perform this task

Virtual hosts enable you to isolate, and independently manage, multiple sets of resources on the same physical machine.

Steps for this task

  1. Create a virtual host using the Virtual Hosts page of the administrative console. Click Environment > Virtual Hosts from the navigation tree of the console, click New and, on the settings page for a virtual host that displays, specify an administrative name for the virtual host.
    When you create a virtual host, a default set of 90 MIME entries is created for the virtual host.
  2. Determine whether you need a virtual host alias for each HTTP transport port. There must be a virtual host alias corresponding to each port used by an HTTP transport. There is one HTTP transport in each Web container, with one Web container in each application server.

    You must create a virtual host for each HTTP port in the following cases:

    • You are using the internal HTTP transport with a port other than the default of 9080, or for some reason the virtual host does not contain the usual entry for port 9080.
    • You have created multiple application servers (either stand-alone or in a cluster) that are using the same virtual host. Because each server must be listening on a different HTTP transport port, you need a virtual host alias for each one's transport port.

    If you determine that you need one or more virtual host aliases, on the HTTP Transports page, note the Port values, such as 9080 or 9082.

  3. If necessary, create a virtual host alias for each HTTP transport port.
    From the Virtual Hosts page, click on your virtual host and, on the settings page for a virtual host, click Host Aliases. For each virtual host alias that you need, on the Host Aliases page, click New; then, on the settings page for a virtual host alias, specify a host name and port. Configure the virtual host to contain an alias for the port number. For example, specify an alias of *:9082 if 9082 is the port number in use by the transport.
  4. When you enter the URL for the application into a Web browser, include the port number in the URL.
    For example, if 9082 is the port number, specify a URL such as http://localhost:9082/wlm/SimpleServlet
  5. If MIME entries are not specified at the Web module level, define MIME object types and their file name extensions. For each needed MIME entry, on the MIME Types page, click New; then, on the settings page for a MIME type, specify a MIME type and extension.
  6. After you configure a virtual host alias or change a configuration, you must regenerate the Web server plug-in configuration and restart WebSphere Application Server.

Related concepts
Virtual hosts
Transports
Related tasks
Exporting applications
Related reference
Virtual host collection



Searchable topic ID:   trun_plugin_vhost
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/ae/tcws_plugin_vhost.html

Library | Support | Terms of Use | Feedback