summaryrefslogtreecommitdiff
path: root/docs/manual/programs/httxt2dbm.xml
blob: 9f272674134561a4eaec952deb064437e9bc5f79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.en.xsl"?>
<!-- $LastChangedRevision$ -->

<!--
 Copyright 2003-2006 The Apache Software Foundation or its licensors, as
 applicable.

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-->

<manualpage metafile="httxt2dbm.xml.meta">
<parentdocument href="./">Programs</parentdocument>

<title>httxt2dbm - Generate dbm files for use with RewriteMap</title>

<summary>
    <p><code>httxt2dbm</code> is used to generate dbm files from text input, for
    use in RewriteMap with the <code>dbm</code> map type.
    </p>
</summary>
<seealso><program>httpd</program></seealso>
<seealso><module>mod_rewrite</module></seealso>

<section id="synopsis"><title>Synopsis</title>
    <p><code><strong>httxt2dbm</strong>
    [ -<strong>v</strong> ]
    [ -<strong>f</strong> <var>DBM_TYPE</var> ]
    -<strong>i</strong> <var>SOURCE_TXT</var>
    -<strong>o</strong> <var>OUTPUT_DBM</var>
    </code></p>
</section>

<section id="options"><title>Options</title>
    <dl>
    <dt><code>-v</code></dt>
    <dd>More verbose output</dd>

    <dt><code>-f</code></dt>
    <dd>Specify the DBM type to be used for the output. If not specified, will
    use the <glossary>APR</glossary> Default. Available types are:<br />
    <code>GDBM</code> for GDBM files<br />
    <code>SDBM</code> for SDBM files<br />
    <code>DB</code> for berkeley DB files<br />
    <code>NDBM</code> for NDBM files<br />
    default for the default DBM type
    </dd>

    <dt><code>-i</code></dt>
    <dd>Input file from which the dbm is to be created. The file should be formated
    with one record per line, of the form:<br />
    <code>key value</code><br />
    See the documentation for <directive module="mod_rewrite">RewriteMap</directive> for
    further details of this file's format and meaning.
    </dd>

    <dt><code>-o</code></dt>
    <dd>Name of the output dbm files.</dd>
    </dl>
</section>

<section id="examples"><title>Examples</title>
    <example>
      httxt2dbm -i rewritemap.txt -o rewritemap.dbm<br />
      httxt2dbm -f SDBM -i rewritemap.txt -o rewritemap.dbm<br />
    </example>
</section>

</manualpage>