AOLserver Configuration Guide$Header: /cvsroot/aolserver/aolserver.com/docs/admin/config.html,v 1.3 2002/09/26 19:51:32 kriston Exp $ Detailed Description of Configuration Parameters Annotated AOLserver Configuration Reference "config-reference.tcl"
AOLserver ConfigurationAOLserver has many configurable parameters, all of which are set in the AOLserver configuration file. This chapter provides a reference of the configuration file structure and parameters so that you can edit the configuration file directly.
By modifying and/or adding AOLserver configuration parameters, you
can:
What is a database pool? A database pool is a set of connections to a database. AOLserver currently supports direct connections to the SOLID and Postgres databases. AOLserver also supports an external connection to Sybase. Third-party database drivers are available for Oracle, Informix, and InterBase. As far as configuration is concerned, you simply specify a database (or data source) that you want AOLserver to access. AOLserver then manages a set of connections to the database that it uses internally to efficiently process database operations. You can also access these connections directly through the Tcl and C interfaces. What are the default AOLserver capabilities? The following capabilites are provided by default for every server and can be configured by manually editing the configuration file.
What is an AOLserver module? AOLserver modules are shared libraries or dynamically-linked libraries that provide specific sets of capabilities that you can load in your servers. The following modules are provided:
Configuration File StructureThis section describes the format of the configuration file and provides detailed information on individual AOLserver parameters. The configuration file is normally the nsd.tcl file in the AOLserver home directory (the directory where AOLserver was installed). You must specify the configuration file when you start up AOLserver with the -c command line flag. The configuration file is a Tcl file that can be modified with a text editor such as vi or emacs on Unix. The file is made up of named sections with one or more parameters. Each section heading is of the form "ns/...". Each parameter is composed of a parameter name and a parameter value. The parameters of a section continue until a new section is defined or until the end of the file. The ns_section and ns_param Tcl functions are used to define each section and the parameters for each section in the configuration file. The general format of the configuration file is as follows: ns_section "ns/..." ns_param param-name param-value ... Configuration file examples begin on page 79. The default configuration file is shown on page 79.
Configuration File HierarchyAlthough there are a large number of configurable parameters for AOLserver, most of them are not required. Also, the parameters are organized into a hierarchy branching off of the following main sections, letting you configure AOLserver at a global level, configure each server, and configure each database you will be accessing. This hierarchy of sections allows you maximum flexibility to provide exactly the capabilities you need on each server, including where pages will be stored and which databases will be accessible.
The parameters for each of the configuration file sections are described below.
Configuration File ReferenceThe following link describes all the possible parameters that can be set in each section of the configuration file. Note that some sections are not necessary at all if a specific capability is not included. For example, you don't need a section configuring the nslog module for a server if that server does not include the nslog module.
Detailed Description of Configuration Parameters Note on Boolean Parameter Values: There are several ways to specify a boolean parameter value. The reference tables below use "on" for true and "off" for false. However, any of the following values are valid: Boolean Value Equivalent Boolean Values on y, yes, t, true, 1 (one) off n, no, f, false, 0 (zero)
Example Configuration FilesDefault Configuration File The default sample-config.tcl comes with AOLserver. There is one server defined, server1, which contains the nscp, nslog, and nssock modules. You can define multiple servers, but only one of them can be run with each command line execution. All this information is defined at the top of the file. Configuration for Multiple Database Pools This configuration file defines one server named default and two database pools named defdb and otherdb. A few things to note about this configuration file are: SOLID and Postgres database pools: The defdb database pool is associated with an SOLID database, and the otherdb database pool is associated with a Postgres database. (See the driver parameters in the ns/db/pool/pool-name sections.) SOLID and Postgres drivers: The drivers used for all of the defined database pools are listed in the ns/db/drivers section. Database pools accessible by each server: The pools parameter in the ns/server/default/db section specifies which database pool the default server has access to. In this example, the default server can access both the otherdb and the defdb database pools.
Configuration Reference
Detailed Description of Configuration Parameters
|