Basic server settings

The server is installed with a set of configuration files in XML format. These files define a default server adaptor, a default applications directory, default server administrators, and default settings for application behavior.

The default server adaptor uses port 1935, the number assigned to Flash Media Server by the Internet Assigned Numbers Authority(www.iana.org). Although you can use any port number, this increases the risk of conflicting with another application that may be assigned to the same port; for example, if you configure the server to use port 80 to support HTTP tunneling, the server might not run both a web server and the Flash Media Server bound to port 80. Applications must be authored to connect to the same port the server is using, in the NetConnection.connect statement. Be sure the port is not blocked by a firewall.

The server is preconfigured with one adaptor containing one virtual host. The virtual host is equivalent to a domain name. The default applications directory for the default virtual host is the applications directory in the Flash Media Server 2 directory. You can view this location by looking at the value for the AppsDir tag in the vhost.xml file. This directory is where the server will look for application subdirectories at startup; you must place an application subdirectory here for each client application that you plan to connect to the server, and the client subdirectory must have the same name as the client application. The presence of the application subdirectory registers the application with the server.

You can configure Flash Media Server 2 as an origin or edge server, configure adaptors and virtual hosts and change the location of the applications directory by editing the server's configuration files and creating directories in the server's conf directory. For more information, see Deploying Flash Media Server.

The default server administrator has the user name and password you chose during the Flash Media Server installation, and is defined in the Users.xml configuration file. The server administrator can connect to the Admin service with the management 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 UNIX superuser.

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 or delete virtual host administrators using the management console.