Virtual Servers Overview
Document Root
The primary document directory or document root is the central directory that
contains all the virtual server's files to make available to remote clients.
The document root directory provides an easy way to restrict access to the files on a
virtual server. It also makes it easy to move documents to a new directory (perhaps
on a different disk) without changing any of the URLs because the paths specified
in the URLs are relative to the primary document directory.
For example, if your document directory is
, a request
C:\netscape\servers\docs
such as
tells the server to look
http://www.example.com/products/info.html
for the file at
. If you change
C:\netscape\servers\docs\products\info.html
the document root (that is, you move all the files and subdirectories), you only
have to change the document root that the virtual server uses, instead of mapping
all URLs to the new directory or somehow telling clients to look in the new
directory.
When you install the Enterprise Server, you designate a document root for your
Enterprise Server instance. That becomes the document root for the default class.
You can change that directory at the class level or override it at the individual
virtual server level.
When you add a class, you also need to specify a document directory. That
directory is an absolute path. However, if you simply enter an absolute path, the
document roots for all virtual servers belonging to the class default to the same
directory. If you include the variable
at the end of your document root absolute
$id
path, every virtual server has a default document root of
class_doc_root/virtual_server_ID. For example, if your class's document directory is
, the default document directory for a virtual server
/netscape/servers/docs/$id
that belongs to the class is
.
vs1
/netscape/servers/docs/vs1
For more information on variables, see "Using Variables," on page 257.
You can also override the class's default document directory at the individual
virtual server level.
Log Files
When you create a new virtual server, by default the log file is the same log file as
the server instance. In most cases you will want each individual virtual server to
have its own log file. To set this up, you can change the log path for each virtual
server.
For more information, see "Configuring Virtual Server Log Settings," on page 280.
Chapter 11
Using Virtual Servers
253
Need help?
Do you have a question about the NETSCAPE ENTREPRISE SERVER 6.1 - 08-2002 ADMINISTRATOR and is the answer not in the manual?
Questions and answers