My favorites | Sign in
Project Logo
                
Code license: Apache License 2.0
Labels: Apache, DBD, SQL
Show all Featured downloads:
dbd-modules-1.0.5.zip
People details
Project owners:
  Thomas.Donovan

Several Apache modules to allow Apache 2.2+ to access databases using DBD.

These modules work on Windows or Unix with any of the DBD drivers included in the Apache 2 DBD Framework.

See the Building Wiki for instructions to build these modules.


mod_log_dbd

Log web requests to an SQL database

LoadModule log_dbd_module modules/mod_log_dbd.so
...
CustomLog   logs/access.sql     "%h, %l, %u, %{%Y-%m-%d %H:%M:%S}t, %r, %>s, %b"
DBDLog      logs/access.sql    "INSERT INTO LogTable (Host, Rname, User, Tstmp, Request, Status, Bytes) \
                                VALUES (%s, %s, %s, %s, %s, %s, %s)"

See the mod_log_dbd Wiki for details.


mod_vhost_dbd

Set the document root directory from an SQL database

LoadModule vhost_dbd_module modules/mod_vhost_dbd.so
...
DBDocRoot "SELECT DocRoot FROM WebTable WHERE Host = %s"  HOSTNAME

See the mod_vhost_dbd Wiki for details.


Release History









Hosted by Google Code