Some variables are defined in server.xml for use in the obj.conf file. The following file fragment defines a docroot variable:
<PROPERTY name="accesslog" value="install-root/instance-directory/logs/access"/>
The variable is then used in the obj.conf file. For example:
Init fn="flex-init" access="$accesslog" format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] ’%Req->reqpb.clf-request%’ %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length%"
Using this accesslog variable enables you to define different document roots for different virtual servers within the same virtual server class.
A variable is found in the obj.conf file when the following regular expression matches:
\\$[A-Za-z][A-Za-z0-9_]*
This expression represents a $ followed by one or more alphanumeric characters. A delimited version (“${property}”) is not supported. To use a regular $ character, use $$ to have variable substitution.
In a default installation, the following variables are used to configure various aspects of the server’s operation.
The following table lists general server.xml variables. The left column lists variables, and the right column lists descriptions of those variables.
Table 2–30 General Variables
Property |
Description |
---|---|
accesslog |
The access log file for the server. |
Variables are evaluated when generating specific objectsets. Evaluation is recursive; meaning that variable values can contain other variables.