SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

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
  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".
LICENSE

This module is in public domain.


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.