Previous | Home | Next


Working with virtual hosts

For many users, creating virtual hosts is unnecessary because the default_host provided is sufficient.

A virtual host is a configuration enabling a single host machine to resemble multiple host machines. It consists of a host alias or aliases, which consist of a host name and a port number. If we specify an asterisk (*) as a host name, all host names and IP addresses the web server can receive are mapped to that virtual host.

The following virtual hosts are defined during installation:

When you install an application, associate a virtual host with each web module in the application. By associating a virtual host with a web module, requests that match the host aliases for the virtual host must be processed by servlets in this web module. The web server plug-in also checks the URI of the request against the URIs for the web module to determine whether the web module can handle them or not. We can view or modify the virtual host to which a web module is assigned by clicking...

A single virtual host can be associated with multiple web modules as long as each application has unique URIs. If there are duplicate URIs among applications, different virtual hosts must be created and associated with each of the applications.

A default virtual host is associated with a web container when you create the application server. To find the default virtual host, click...