Configuring Flash Communication Server > About configuration levels > Adding adaptors and virtual hosts |
![]() ![]() ![]() |
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.
To create a new virtual host, create a new virtual host directory inside the /conf/adaptor_name directory in the Flash Communication Server directory, for the adaptor you wish to use for the new virtual host:/conf/adaptor_name/virtual_host_name. This directory must include the following items:
![]() |
A Vhost.xml file |
![]() |
An Application.xml file |
You also need to add the new virtual host to the Server.xml file and add administrative users for that virtual host.
A typical customized server conf directory might look like this:
A customized conf directory containing multiple adaptor, virtual host, and application subdirectories and configuration files
The conf directory illustrated here contains two adaptor subdirectories: the _defaultRoot_ subdirectory and the _SecondAdaptor_ subdirectory.
![]() |
The _defaultRoot_ subdirectory contains the _defaultVHost_ subdirectory and another virtual host subdirectory named www.macromedia.com. Each of these virtual host subdirectories contains an application subdirectory. The application subdirectory for www.macromedia.com contains directories for the applications testApplication and videoConference. |
![]() |
The _SecondAdaptor_ subdirectory contains a _defaultVHost_ directory and another virtual host directory named www.streamingVideo.com. The www.streamingVideo.com subdirectory contains an application subdirectory with directories for AnotherTestApplication and a WhiteBoard application. |
Tip: The /conf/adaptor_name/vhost_name/applications directory is different from the applications directory you use to register your applications.
![]() ![]() ![]() |