Flash Communication Server配置翻译系列(2)

      FCS 2005-7-8 9:58
Flash Communication Server配置翻译系列(2)
By 西沉 2005-6-13
Registering client applications
注册客户端程序
The server is configured at installation with one adaptor directory named _defaultRoot_ containing
服务器在安装时被配置成,一个命名为_defaultRoot_的adaptor文件夹包含一个命名为
one virtual host directory named _defaultVHost_. The server defines its virtual hosts at startup by
_defaultVHost_虚拟主机文件夹。服务器启动时通过查找adaptor文件夹下包含有效Vhost.xml
searching for directories within the adaptor directory that contain valid Vhost.xml files, such as the
文件的文件夹来定义他的虚拟主机,如_defaultVHost_文件夹。
_defaultVHost_ directory. At the same time, the server defines each application that will be allowed
在同时,服务器定义在虚拟主机中所有可以被连接的应用程序文件夹,在Vhost.xml文件的
to connect to a virtual host by looking for application directories inside a directory specified by the <AppsDir> tag in the Vhost.xml file (by default, the applications directory in the Flash
<AppsDir>标记中指定(默认在服务器的安装目录下)
Communication Server directory).
For example, if you create an application named my_app, you must create a my_app subdirectory
例如:你创建一个名为my_app的应用程序,你必须在应用程序主目录下创建一个名为
in the applications directory to register my_app.
my_app的子目录来注册my_app。
You can specify the directory you want to use to store your client application directories by editing
你可以通过编辑Vhost.xml文件中<AppsDir>标记的内容的来改变你保存程序的路径。
the <AppsDir> tag in the Vhost.xml file. By changing the path specified in this tag, you can locate the directory for the virtual host anywhere you want. If no directory is specified, it defaults to the
如果没有任何的路径被指定,默认是虚拟主机目录。
virtual host directory itself.

You must restart the server in order for this change to take effect.
一旦修改了配置文件,你必须重起服务器使之生效。
Once you have specified the directory where you'll store your application directories, you must
一旦你指定存储应用程序的路径,你必须在该路径下为每个程序创建一个目录。
create a directory inside it for each client application you plan to use with that virtual host. Each
client application must have a directory with the same name that the client application uses when
而且目录名必须和连接字符串中使用的程序名相同。
connecting to the server. Once you have created a subdirectory for each of your applications, you
当你为自己的每个程序创建子目录的时候,你可以决定是否需要自己的应用程序配置文件
can decide whether to give any of the applications their own Application.xml file. By including an
通过在应用程序文件夹下包含Application.xml。
Application.xml file in a client application's directory, you can give that application different
可以使得程序具有不同的配置。
settings from those defined in the virtual host's Application.xml file, which serve as the default settings for applications on the virtual host. For more information about the Application.xml file,
更多信息,见Configuring Flash Communication Server.
see Configuring Flash Communication Server.
标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}