# /etc/httpd/extra/mod_dbd.conf

# This section must be server-wide

# This applies to threaded MPMs only. 
# Prefork will use one database connection per child.
# (Slackware uses prefork by default)
<IfModule !prefork.c>
    DBDMin  0
    DBDMax  32
    DBDKeep 4
    DBDExptime 10
</IfModule>

##############################################################################

# This section can be either server-wide or vhost-specific
# To clarify, if you have only one file tree for which mirrorbrain is acting
# as redirector, you can leave this section server-wide.  However, if you
# plan to host two (or more) separate trees (e.g. libwhatever and appwhatever),
# you will need a separate database for each tree, and thus you'll have to 
# put DBDriver and DBDParams in the relevant vhost for each tree.

DBDriver pgsql
DBDParams "host=localhost user=mirrorbrain password=@password@ dbname=dbname connect_timeout=15"