Bug 238543 - rewritemap (mod_rewrite) does not support ndbm
rewritemap (mod_rewrite) does not support ndbm
Product: Fedora
Classification: Fedora
Component: httpd (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Joe Orton
Depends On:
  Show dependency treegraph
Reported: 2007-05-01 06:14 EDT by Tim Wilkes
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-05-01 07:39:12 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Tim Wilkes 2007-05-01 06:14:45 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20070313 Fedora/ Firefox/

Description of problem:
Rewritemap works fine when using the txt, but if the type is changed to dbm (and pointed to the apprioriate dbm file(s) the lookup map fails.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. make a map file in plain text, then convert it to ndbm.
2. set a rewritemap directive up to map a url to adirectory using the map file

eg. Map file:
www.example.com /web/virthost/LB/www.example.com
Rewrite Rule:
RewriteMap     virtualhost        dbm:/<path>/virthost.map.db

3. test.

Actual Results:
[www.example.com/sid#8157b3e8][rid#816629b0/initial] (5) map lookup FAILED: map=virtualhost[dbm] ke

Expected Results:
[www.example.com/sid#81a623e8][rid#81b49c40/initial] (5) map lookup OK: map=virthost[dbm] key=www.e
xample.com -> val=/web/virthost/LB/www.example.com

Additional info:
When specifying the type of dbm in the rewritemap directive, the configtest says that that type is invalid. May just require an extra compile option (--with-dbm=ndbm and --with-ndbm)
Comment 1 Joe Orton 2007-05-01 07:39:12 EDT
ndbm format is intenionally not supported, because of licensing issues - the
only ndbm implementation available is in GPL-licensed gdbm.  sdbm format is the
default; Berkeley DB format is also available (use RewriteMap ... dbm=db:/...).  

The httxt2dbm tool can be used to create databases in the chosen format from
flat text files.

Note You need to log in before you can comment on or make changes to this bug.