Java Server

Virtual Hosts (Beta)


Contents / Settings / Procedures / Buttons

The Virtual Hosts page allows you to assign more than one host to the same Java Server IP Address.

For example, suppose your Java Server is called www.webserver.com, and acts as the web server for multiple subscribers, such as Acme, Inc. and Galaxy Arts, at the IP Address 127.158.77.89. Under ordinary circumstances, you might set up your server to access Acme's home page using the URL http://www.webserver.com/Acme/ and Galaxy's home page using the URL http://www.webserver.com/Galaxy/.

However, since Acme, Inc. and Galaxy Arts each have their own internet name registrations (acme.com and galaxy.org, respectively), they would like to provide access to their home pages under their own domain names, rather than under the name of the web server. Acme, Inc. and Galaxy Arts have arranged with a lookup service (such as Internic) to route requests for www.acme.com and www.galaxy.org to the same IP address as www.webserver.com (127.158.77.89).

In this case, you can use the Java Server Virtual Hosts page to assign both Acme, Inc, and Galaxy Arts a virtual host name and location on your server. The URL for Acme, Inc.'s home page becomes http//www.acme.com/, and the URL for Galaxy Arts's home page becomes http://www.galaxy.org/. Both are mapped through the virtual host facility, and each URL points to a different location on the web server.

Settings

The Virtual Hosts page has the following fields:

Host
The fully qualified system name of the host that you want to set up on the server, for example, acme.com or galaxy.org.

Document Root
The primary document directory (for example, /home/acme/) that contains the documents you want to serve for this host.

Procedures

To Add a New Virtual Host:

  1. Click Add.
  2. In the Host field, enter the system name of the host (for example, www.galaxy.org).
  3. In the Document Root field, enter the full pathname of the primary document directory for this host (for example, /home/galaxy/public_html).
  4. Click Save.
Note: In order to properly use the virtual hosting feature of the the Java Server, you must have already set up your network to recognize the host names and directory structures that you may define.

To Modify a Virtual Host Entry:

  1. Select the field you want to edit.
  2. Click Modify.
  3. Edit the field as needed.
  4. Click Save.

To Remove a Virtual Host Entry:

  1. Select the entry you want to delete.
  2. Click Remove.
  3. Click Save.

Buttons

To make changes to the Virtual Hosts page and have those settings take affect, use the five buttons at the bottom of the screen. These are: Note: If you Add, Modify, or Remove an alias pathname, you must Save before the changes take affect.
Top
java-server-feedback@java.sun.com