Predefined Symbols - MACROMEDIA FLASH MEDIA SERVER 2-MANAGING FLASH MEDIA SERVER Manual

Managing flash media server
Table of Contents

Advertisement

Once you have defined such a mapping, you can use the symbol in one of the XML
configuration files.
To use a symbol in place of a normal string in a configuration file, specify the symbol name,
with the characters
${
server finds something of the form
mapped to a string. If no mapping is found, then
literally. Otherwise, it is substituted.
For example, in the Vhost.xml file, you might use the previously defined symbol as follows:
<VirtualHost>
<VirtualDir>
<Streams>foo;${VIR_DIR}</Streams>
</VirtualDir>
</VirtualHost>
When the server encounters the symbol, it checks whether the symbol named
mapped to anything. It then finds that it is mapped to
file. The symbolic mapping in the previous XML fragment is equivalent to the following
XML without symbols:
<VirtualHost>
<VirtualDir>
<Streams>foo;c:\streams</Streams>
</VirtualDir>
</VirtualHost>
If the substitution.xml file is missing and you try to use text substitution symbols in the
configuration files, the server will interpret the symbols as literal strings.

Predefined symbols

The two predefined symbols
available. The
symbol is mapped to the location of the FMSMaster.exe file, as this
ROOT
example shows:
<AppsDir>${ROOT}\..\..\myapps</AppsDir>
The
symbol is mapped to the location of the Server.xml file, as this example shows:
CONF
<AppsDir>${CONF}\..\yourapps</AppsDir>
80
Deploying Flash Media Server
before the symbol name, and
${SYMBOL}
and
ROOT
CONF
after the symbol name. Whenever the
}
, it performs a lookup to see if the symbol is
is not substituted, and is taken
${SYMBOL}
c:\streams
do not need to be mapped, and are always
is
VIR_DIR
in the substitution.xml

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MEDIA SERVER 2-MANAGING FLASH MEDIA SERVER and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash media server 2

Table of Contents