
Managing the Server 13
When you install the server, the default flashcom application directory includes sample
applications that are provided to illustrate the essential capabilities of the server. Each sample
application resides in its self-named directory in the flashcom application directory. However,
when you build a Flash MX SWF file of your own, you do not need to place a copy of it in its
subdirectory in the flashcom application directory. The only requirement is that the subdirectory
exists and is named with the name of the application.
You can add adaptors and virtual hosts and change the location of the application directory by
editing the server’s configuration files and creating directories in the server’s conf directory. For
more information, see Chapter 3, “Configuring Flash Communication Server,” on page 25.
The default server administrator has the user name and password you chose during the Flash
Communication Server installation, and is defined in the Server.xml configuration file. The server
administrator can connect to the FlashCom Admin Service with the Administration Console and
perform a variety of server administration tasks, including shutting down the server and
disconnecting client applications. (In the nomenclature of server administration, this server
administrator is equivalent to the “root” user.)
Virtual host administrators can only perform tasks relating to the applications running on their
own virtual host. There are no virtual host administrators defined when the server is first
installed. Server administrators, including the default server administrator defined during
installation, have access to all virtual hosts. Server administrators can add virtual host
administrators using the Administration Console. For more information about adding
administrators, see Adding and editing administrators.
Registering client applications
The server is configured at installation with one adaptor directory named _defaultRoot_
containing one virtual host directory named _defaultVHost_. The server defines its virtual hosts
at startup by searching for directories within the adaptor directory that contain valid Vhost.xml
files, such as the _defaultVHost_ directory. At the same time, the server defines each application
that will be allowed to connect to a virtual host by looking for application directories inside a
directory specified by the
<AppsDir> tag in the Vhost.xml file.
You can specify the directory you want to use to store your client applications’ directories by
editing the
<AppsDir> tag in the Vhost.xml file. By changing the path specified in this tag, you
can locate the application directory for the virtual host anywhere you want. If no application
directory is specified, it defaults to the virtual host directory itself.
To edit the <AppsDir> tag in the Vhost.xml file:
1 Locate the Vhost.xml file for the virtual host you are working with.
2 Open the file in a text editor.
3 Replace the path inside the <AppsDir> tag with the path of your choice, such as C:\Server
Files\flashcom\applications. Do not use quotation marks.
4 Save the Vhost.xml file.
You must restart the server in order for this change to take effect.
Kommentare zu diesen Handbüchern