From 4066de283e029016235ddb343175caccd885ba5a Mon Sep 17 00:00:00 2001
From: Rich Bowen dbm: DBM Hash File
int: Internal Function
prg: External Rewriting Program
dbd or fastdbd: SQL Query
Summary
See also
@@ -358,11 +357,6 @@ by many requests.
a context that does not have RewriteEngine
set to
on
.
This feature utilizes the rewrite-map
mutex,
- which is required for reliable communication with the program.
- The mutex mechanism and lock file can be configured with the
- Mutex
directive.
A simple example is shown here which will replace all dashes with underscores in a request URI.
@@ -401,33 +395,6 @@ this process, or if the script itself is very slow.When a MapType of dbd
or fastdbd
is
- used, the MapSource is a SQL SELECT statement that takes a single
- argument and returns a single value.
mod_dbd
will need to be configured to point at
- the right database for this statement to be executed.
There are two forms of this MapType.
- Using a MapType of dbd
causes the query to be
- executed with each map request, while using fastdbd
- caches the database lookups internally. So, while
- fastdbd
is more efficient, and therefore faster, it
- won't pick up on changes to the database until the server is
- restarted.
If a query returns more than one row, a random row from -the result set is used.
- -
-RewriteMap myquery "fastdbd:SELECT destination FROM rewrite WHERE source = %s"
-
on
.
- This feature utilizes the rewrite-map
mutex,
- which is required for reliable communication with the program.
- The mutex mechanism and lock file can be configured with the
-
A simple example is shown here which will replace all dashes with underscores in a request URI.
@@ -401,33 +396,6 @@ this process, or if the script itself is very slow. - -When a MapType of dbd
or fastdbd
is
- used, the MapSource is a SQL SELECT statement that takes a single
- argument and returns a single value.
There are two forms of this MapType.
- Using a MapType of dbd
causes the query to be
- executed with each map request, while using fastdbd
- caches the database lookups internally. So, while
- fastdbd
is more efficient, and therefore faster, it
- won't pick up on changes to the database until the server is
- restarted.
If a query returns more than one row, a random row from -the result set is used.
- -