
145
FLASH
MEDIA
SERVER
4.5
CONFIGURATION
AND
ADMINISTRATION
XML configuration files reference
Last updated 11/28/2012
See also
TTL
,
UpdateInterval
CachePrefix
Specifies the cache prefix that is passed from the origin server to the edge server.
This element is set on the origin server. The edge server uses the value of this element as a relative path to locate the
cache file defined in the
CacheDir
element.
The
type
attribute provides additional specification for the cache prefix. The
type
attribute can be set to
path
or
sname
. The default is
path
.
Examples
<CachePrefix type="path"></CachePrefix>
When the attribute
type
is
path
, the server appends the physical path of the recorded stream to the prefix.
<CachePrefix type="sname"></CachePrefix>
When the attribute
type
is
sname
, the server appends the stream name to the prefix.
The cache prefix is any text with or without preset parameters. The prefix can be any name without special characters,
such as \, :, *, ?, ", <, >, |. All parameters are surrounded by “?”. The server substitutes the actual names for everything
specified within the “?”.
By default, the prefix is set to
?IP
?.
You can include the IP address in the prefix to avoid file collision. For example, the edge server might be connecting
to two different origin servers with the same file in c:\data\foo.flv. Adding the IP to the prefix for these files points each
file to the appropriate server.
If you want more than one origin server to share the cache file, do not include the IP as a parameter. Remember the
cache prefix is a relative path used by the edge server to look up the cache stream file.
Examples
The cache prefix creates a relative path in the edge’s
CacheDir
. All parameters are separated by \ or /.
<CachePrefix type="path">c:\fms\flvs\foo.flv. data/?IP?</CacheDir>
resolves to:
data/xxx.xxx.xxx.xxx/c/fms/flvs/foo.flv
<CachePrefix type="path">?APPINST?/data</CacheDir>
resolves to:
app1/inst1/data/c/fms/flvs/foo.flv
<CachePrefix type="path">origin1/data/</CacheDir>
Cache prefix
Actual name
?IP?
IP address of the server
?APP?
Application name
?APPINST?
Application instance
?VHOST?
vhost name