Variables - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

The server.xml File
If no virtual server (VS) can be found that matches an IP address or
requests are processed using the default VS defined in the
VS could be made to output a customized error message, or even handle the
request using a special document root.

Variables

Defining variables for use in the
useful. The following code defines and uses a
<?xml version="1.0" encoding="UTF-8"?>
<!-- declare any variables to be used in the server.xml file in the
ATTLIST below -->
<!DOCTYPE SERVER SYSTEM "server.dtd" [
<!ATTLIST VARS
docroot CDATA #IMPLIED
...
>
]>
...
...
This variable allows different document root directories to be assigned for different
virtual servers. The variable can then be used in the
NameTrans fn=document-root root="$docroot"
Using this
virtual server classes in the
document roots for different virtual servers within the same virtual server class.
NOTE
284
Netscape Enterprise Server NSAPI Programmer's Guide • November 2001
<VS id="example.com" connections="group2"
mime="mime1" aclids="acl1">
<VARS docroot="/nes60/docs/class2/example"
webapps_file="web-apps.xml" webapps_enable="on" />
<USERDB id="default" database="default" />
</VS>
variable saves you from having to define document roots for
docroot
obj.conf
Variable substitution is allowed only in an
allowed in any other Enterprise Server configuration files.
Any variable referenced in an
file at the
server.xml
variables with default values at the
overriding them in the
file is not required, but it is sometimes
obj.conf
docroot
obj.conf
files. It also allows you to define different
obj.conf
,
, or
SERVER
VSCLASS
SERVER
is recommended.
VS
header,
Host
CONNECTIONGROUP
variable:
file. For example:
file. It is not
obj.conf
file must be defined in the
level. Defining
VS
or
level and
VSCLASS
. This

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents