
Chapter 344
• <AppsDir> specifies the path to the applications for this virtual host; during installation, the
default location is written to the default Vhost.xml file. In Windows, the default
<AppsDir>
location is C:\Program Files\Macromedia\Flash Communication Server\applications. On
UNIX, the default location is /opt/macromedia/fcs/applications.
If nothing is specified in this tag, it defaults to C:\Program Files\Macromedia\Flash
Communication Server MX\conf\_defaultRoot_\_defaultVHost_\ in Windows. On UNIX,
the default <AppsDir> path is /opt/macromedia/fcs/conf/_defaultRoot_/_defaultVhost_/.
This tag allows you to change the location of your applications directory and server-side script
files, if you wish. For example, if you want to keep your application subdirectories and server-
side script files in C:\Financial_Apps, you can specify that path in the
<AppsDir> tag. You
would create subdirectories named with your application names in C:\Financial_Apps to
register your applications with the server.
You can also specify multiple applications directories by separating locations with a semicolon
(;). For example, you could specify the following two locations, each of which contained
application subdirectories:
<AppsDir>C:\MyApps;D:\NewApps</AppsDir>.
If you change the default location of
<AppsDir>, be sure to include a directory named admin
in each directory. This ensures that the Administration Console (admin.swf) will be able to
connect to the virtual host. For more information, see Using the Administration Console.
• <RecordAccessLog> indicates whether the server should (true) or should not (false) record
connections to the server. This information is written to an access.flv file in the virtual host’s
admin\Streams\Logs\ directory inside its application directory.
• <ResourceLimits> is a container tag for the next five tags. By specifying values for these five
tags, you can ensure that the server does not consume excessive resources for the virtual host,
and you can prevent denial of service attacks to the server.
• <MaxConnections> specifies the maximum number of simultaneous connections allowed on
this virtual host. Connections are denied if the specified limit is exceeded. The default of -1
allows an infinite number of connections. If you supply a different value, it must be a positive
integer. If you specify a negative or non-numeric value, the default is used. This value can be
changed at runtime.
• <MaxAppInstances> specifies the maximum number of application instances that can be
loaded by this virtual host. (A chat application, for example, might require more than one
instance, because each chat room would be represented by a separate instance of the
application on the server.) A Flash movie defines which application instance it is connecting to
by the parameters it includes with its ActionScript
connect call.
The default value of -1 allows an infinite number of application instances. If you specify a
different value, it must be a positive integer. This value can be changed at runtime.
• <MaxStreams> specifies the maximum number of streams that the virtual host can create. The
default value of -1 allows an infinite number of streams. If you supply a different value, it must
be a positive integer. This value can be changed at runtime.
• <MaxSharedObjects> specifies the maximum number of shared objects that the virtual host
can create. (For more information about shared objects, see Developing Communication
Applications.) The default value of -1 allows an infinite number of streams. If you supply a
different value, it must be a positive integer. This value can be changed at runtime.
Kommentare zu diesen Handbüchern