
Configuring Flash Communication Server 43
Each virtual host directory contains a Vhost.xml file. This file contains tags that define the
settings for the virtual host. These settings include aliases for the virtual host, the location of the
virtual host’s application directory, limits on the resources the virtual host can use and other
parameters.
The Vhost.xml file contains the following tag structure, with brief comments for each tag:
<VirtualHost>
<AliasList>
<Alias name="acme">acme.myDomain.com</Alias>
</AliasList>
<AppsDir>C:\Program Files\Macromedia\Flash Communication Server
MX\applications\</AppsDir>
<RecordAccessLog>true</RecordAccessLog>
<ResourceLimits>
<MaxConnections>-1</MaxConnections>
<MaxAppInstances>-1</MaxAppInstances>
<MaxStreams>-1</MaxStreams>
<MaxSharedObjects>-1</MaxSharedObjects>
<AppInstanceGC>20</AppInstanceGC>
</ResourceLimits>
<VirtualDirectory>
<Streams></Streams>
</VirtualDirectory>
<DNSSuffix></DNSSuffix>
<Allow>all</Allow>
</VirtualHost>
The tags in the Vhost.xml file are described below. You can change the values of some of these
tags at runtime; to learn how, see the administration API article at Macromedia’s website
(www.macromedia.com/go/flashcom_admin).
• <VirtualHost> is the root tag for the XML document. It is a container for all the other tags.
• <AliasList> is a container for one or more <Alias> tags.
• <Alias> allows you to specify an alternative short name to use when connecting to the virtual
host. You can use this tag to shorten long host names. You can specify an unlimited number of
aliases by adding additional
<Alias> tags. Each alias you specify must be mapped to the
correct IP address for the virtual host.
For example, if the host name is
machineName.company.com, then you could use the name
attribute of the alias tag to shorten the host name to
machineName:
<Alias name = "machineName">machineName.company.com</Alias>
Do not use the same alias for more than one virtual host. If more than one virtual host on the
same adaptor has the same alias defined, then the first match found will be used by the server.
This can cause unpredictable results.
Comentários a estes Manuais