Symbolic text substitutions
79
Symbolic text substitutions
Flash Media Server supports the use of symbolic text substitutions in all tags in the server’s
XML configuration files. When you specify a symbol in any configuration tag, Flash Media
Server will substitute the string you have mapped to that symbol when it reads the
configuration file. After you have configured the server the first time, future edits will be
easier: you can keep all the strings and symbol mappings in a single file instead of editing all of
the server’s separate configuration files.
Making a substitution
To support the symbol-to-string mappings, create a file named substitution.xml. This file’s
name must be all lowercase, since filenames are case-sensitive on Linux-based operating
systems, but not on Windows platforms.
The substitution.xml file is a place to describe the symbol-to-string mappings that you
defined. The Flash Media Server 2 installer also defines a few of these mappings during the
installation process, and it stores them in a separate file called fms.ini. The server looks for
both of these files in the conf directory located at the same level as the Flash Media Server
executable files. You can also choose to define these mappings in other files that you create,
and create references to these custom files in the substitution.xml file.
The substitution.xml file defines text-to-symbol mappings using the following form:
<Root>
<Symbols>
<
SymbolName
>
StringToMapTo
</
SymbolName
>
<
SymbolName
>
StringToMapTo
</
SymbolName
>
</Symbols>
</Root>
Within the
Symbols
tag, create child tags that describe the symbol names. Place the string to
be mapped to the symbol within the opening and closing child tag.
For example, this tag maps the symbol
VIR_DIR
to the string
"c:\streams"
:
<VIR_DIR>c:\streams</VIR_DIR>
In the substitution.xml file, this tag would be a child of the
Symbols
tag, as in the following
XML fragment:
<Root>
<Symbols>
<VIR_DIR>c:\streams</VIR_DIR>
</Symbols>
</Root>
Содержание FLASH MEDIA SERVER 2-MANAGING FLASH MEDIA...
Страница 1: ...Managing Flash Media Server...
Страница 6: ...6 Contents...
Страница 10: ...10 About This Manual...
Страница 84: ...84 Deploying Flash Media Server...