The Configuration Hosts Card


Contents / Working with Virtual Hosts / The Hosts Card Fields

The Configuration Hosts Card is used to change parameters for a specific host. It allows you to:

When you first login to the Sun WebServer and select the Configuration Folder, there is only one Hosts Card displayed. This is the Hosts Card for the host machine on which the Sun WebServer is installed.

However, the Sun WebServer can support an unlimited number of Hosts, each with its own fully-qualified domain name, document tree, port assignment, and so on. Each additional host you add to the Sun WebServer is called a "virtual host." Once you add a new host to the Sun WebServer, its name gets added to the Hosts menu.

Working with Virtual Hosts

You can use the Hosts Card to:

NOTE: In order to properly use the virtual hosting feature of the Sun WebServer, you must have already set up your network to recognize the host names and/or IP Addresses you may create.

The Hosts Card Fields

The Configuration Hosts Card fields are:

To Define a New Virtual Host

  1. Select Configuration from the Folders area.
  2. If the configuration you want to edit is not open, select Open from the Config menu.
  3. Select New from the Hosts menu.  A host card with default settings displays.
  4. Enter the fully qualified domain name for this host in the Hostname field.
  5. (Optional) Change other parameters of the Hosts card, such as the document root.
  6. (Optional) Display the Ports card by clicking on the Port name or selecting a port name from the Ports menu.
  7. (Optional) Assign the virtual host to a port number or make other changes to the Ports card parameters.
  8. Select Save from the Config menu.
  9. Select Restart from the Config menu.
  10. If your network is properly set up to recognize the addition of virtual hosts to your server, enter the following URL into your browser: http://virtualhost/ to connect to the new host.