mod_cdb 0.1 review

Download
by rbytes.net on

mod_cdb obtains the contents from a cdb file. It is suitable for handling thousands of small files. BUILD: 1

License: Public Domain
File size: 2K
Developer: Yusuke Shinyama
0 stars award from rbytes.net

mod_cdb obtains the contents from a cdb file.

It is suitable for handling thousands of small files.

BUILD:

1. Get djb's cdb package from http://cr.yp.to/cdb.html
2. Extract and build it.
3. Edit ./Makefile to make it point the Apache installed directory and the cdb directory (I suppose cdb-0.75).
4. $ 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".

Requirements:
cdb-0.75
Apache

mod_cdb 0.1 keywords