mod_cdb
version 0.1, May 27 2004
by Yusuke Shinyama < yusuke at cs dot nyu dot edu >
mod_cdb is an Apache2 module which get its contents from a cdb file. It is suitable for handling thousands of small files.
- BUILD
-
- Get djb's cdb package from http://cr.yp.to/cdb.html
- Extract and build it.
- Edit ./Makefile to make it point the Apache installed directory and the cdb directory (I suppose cdb-0.75).
- $ make install
- USE
Add this to the httpd.conf:
LoadModule cdb_module modules/mod_cdb.so
<Location /path1>
SetHandler cdb
CDBSource /somewhere/data1.cdb text/html
</Location>
When URI http://yourhost/path1/abc is accessed, the server tries to
obtain the contents from the cdb file /somewhere/data1.cdb by the key "abc",
with the predefined mimetype "text/html".
- LICENSE
This module is in public domain.
