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
www.galaxy.org
).
/home/galaxy/public_html
).