
Chapter 332
About the configuration hierarchy
Flash Communication Server can support several adaptors, virtual hosts, and applications
simultaneously. Each adaptor on the server can serve multiple virtual hosts, and each virtual host
can host multiple applications. By supporting multiple adaptors and virtual hosts, Flash
Communication Server facilitates management of multiple websites that may have different
configurations and administrators.
Each of these layers of service has its own configuration settings, stored in separate XML files.
These files are stored in a directory structure that reflects the hierarchy of adaptors, virtual hosts,
and applications you want to use with the server.
The default directory structure installed with the server looks like this:
The directory structure includes three subdirectories: conf, _defaultRoot_, and _defaultVHost_.
• The conf subdirectory, at the top of the hierarchy, holds all the configuration files for the
server. This subdirectory contains the Server.xml file and the _defaultRoot_ subdirectory. The
Server.xml file contains settings that relate to the server only. The specific settings for the
adaptors, virtual hosts, and applications are stored in separate XML files.
• The _defaultRoot_ subdirectory is the default adaptor directory for the server. It contains the
Adaptor.xml file and the _defaultVHost_ subdirectory. The Adaptor.xml file contains the
settings that relate to the adaptor. (If there were a separate adaptor, it would have its own
subdirectory at the same level as the _defaultRoot_ subdirectory.)
• The _defaultVHost_ subdirectory is the default virtual host subdirectory for the adaptor. It
contains the Vhost.xml file, which contains the settings for the virtual host, and the
Application.xml file, which contains default settings for the client applications that will
connect to the server. (If there were another virtual host on the same adaptor, it would have its
own subdirectory at the same level as the _defaultVHost_ subdirectory.) Each adaptor
directory must contain a _defaultVHost_ directory.
Adding adaptors and virtual hosts
To add an adaptor to the server, you must add a complete adaptor directory structure to the
server’s conf directory. Each adaptor directory must contain an Adaptor.xml file and at least one
virtual host directory, called _defaultVHost_. When you add virtual hosts, these must be in
addition to _defaultVHost_.
When you design an application in Macromedia Flash MX that will connect to the Flash
Communication Server, you add a subdirectory with the application’s name to the application
directory of the virtual host it will connect to. The application’s subdirectory can contain its own
Application.xml file if you want the application to override any of the settings in the generic
Application.xml file in the virtual host directory.
Commentaires sur ces manuels