| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<title> |
| 5 |
ht://Dig: Configuration file format -- General |
| 6 |
</title> |
| 7 |
</head> |
| 8 |
<body bgcolor="#eef7ff"> |
| 9 |
<h1> |
| 10 |
Configuration file format -- General |
| 11 |
</h1> |
| 12 |
<p> |
| 13 |
ht://Dig Copyright © 1995-2004 <a href="THANKS.html">The ht://Dig Group</a><br> |
| 14 |
Please see the file <a href="COPYING">COPYING</a> for |
| 15 |
license information. |
| 16 |
</p> |
| 17 |
<hr size="4" noshade> |
| 18 |
<p> |
| 19 |
All programs in the ht://Dig system use a flexible configuration |
| 20 |
file. This configuration file is a plain ASCII text file. Each line in |
| 21 |
the file is either a comment or contains an attribute. |
| 22 |
Comment lines are blank lines or lines that start with a '#'. |
| 23 |
Attributes consist of a variable name and an associated |
| 24 |
value: |
| 25 |
</p> |
| 26 |
<dl compact> |
| 27 |
<dd> |
| 28 |
<code> |
| 29 |
<name>:<whitespace><value><newline></code> |
| 30 |
</dd> |
| 31 |
</dl> |
| 32 |
<p> |
| 33 |
The <name> contains any alphanumeric character or |
| 34 |
underline (_) The <value> can include any character |
| 35 |
except newline. It also cannot start with spaces or tabs since |
| 36 |
those are considered part of the whitespace after the colon. It |
| 37 |
is important to keep in mind that any trailing spaces or tabs |
| 38 |
will be included. |
| 39 |
</p> |
| 40 |
<p> |
| 41 |
It is possible to split the <value> across several |
| 42 |
lines of the configuration file by ending each line with a |
| 43 |
backslash (\). The effect on the value is that a space is |
| 44 |
added where the line split occurs. |
| 45 |
</p> |
| 46 |
<p> |
| 47 |
Each program only extracts the attributes it needs and hence |
| 48 |
it is often convenient to use the same configuration file with |
| 49 |
all ht://Dig programs. If an attribute is specified more than |
| 50 |
once in the file, only the last one will be used. |
| 51 |
</p> |
| 52 |
<p> |
| 53 |
If a program needs a particular attribute and it is not in |
| 54 |
the configuration file, it will use the default value which |
| 55 |
is compiled into the program as defined in |
| 56 |
<code>htcommon/defaults.cc</code>. |
| 57 |
</p> |
| 58 |
<p> |
| 59 |
A configuration file can include another file, by using the special |
| 60 |
<name>, <code>include</code>. The <value> is taken as |
| 61 |
the file name of another configuration file to be read in at |
| 62 |
this point. If the given file name is not fully qualified, it is |
| 63 |
taken relative to the directory in which the current configuration |
| 64 |
file is found. Variable expansion is permitted in the file name. |
| 65 |
Multiple include statements, and nested includes are also permitted. |
| 66 |
</p> |
| 67 |
<dl> |
| 68 |
<dt> |
| 69 |
<em>Example:</em> |
| 70 |
</dt> |
| 71 |
<dd> |
| 72 |
<code>include: common.conf</code> |
| 73 |
</dd> |
| 74 |
</dl> |
| 75 |
<hr size="4" noshade> |
| 76 |
|
| 77 |
Last modified: $Date: 2004/05/28 13:15:18 $ |
| 78 |
|
| 79 |
</body> |
| 80 |
</html> |