Configure virtual hosts

 

+

Search Tips   |   Advanced Search

 

Overview

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

 

Procedure

  1. Create a virtual host using the Virtual host collection of the administrative console. Click...

    Environment | Virtual Hosts | New

    On the Virtual host settings page that displays, specify an administrative name for the virtual host. When you create a virtual host, a default set of MIME entries is created for the virtual host.

  2. 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, usually assigned to the virtual host named default_host. We can change the default assignment to any valid virtual host.

    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. You must define the port that you are using.

    • You are using the default port 9080, but the port is no longer defined. You must define port 9080.

    • You have created multiple Application Servers (either stand-alone servers or cluster members) that use the same virtual host. Because each server must be listening on a different HTTP transport port, define a virtual host alias for the transport port of each server.

    If you define new virtual host aliases, identify the port values that the aliases use on the HTTP transport collection page.

  3. If necessary, create a virtual host alias for each HTTP transport port.

    From the Virtual host collection page, click your virtual host. On the Virtual host settings page for the virtual host, click Host aliases. To define a virtual host alias on the Host alias collection page, click New. On the Host alias settings page for the virtual host alias, specify a host name and a 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 type collection page, click New. On the MIME type settings page, specify a MIME type and extension.

  6. After you configure a virtual host alias or change a configuration, regenerate the Web server plug-in configuration and restart WebSphere Application Server.

 

See also


Virtual host collection

 

See Also


Virtual hosts
Transports

 

Related Tasks


Exporting applications