[users@httpd] The new mod_dbd with mod_rewrite

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a great feature idea for utilizing the new database
functionality in Apache 2.2, and am looking for ideas of where to
start.

The ability to have a RewriteMap that queries a database and supports
"connection pooling in threaded MPMs".  I haven't really seen anything
that utilizes mod_dbd yet, so this would be the logical next step.

For example, something like:
RewriteMap	vhost	int:sqlselect
RewriteCond	${sqlselect:SELECT docroot FROM vhosts WHERE
vhostname=%{HTTP_HOST}}  ^(/.*)$
RewriteRule	^/(.*)$   %1/$1

I have accomplished this functionality with "RewriteMap	 vhost
prg:/path/to/sqlQueryScript.pl", but using this method isn't good in
cases where you have many simultaneous requests (because the requests
get serialized).

Does anyone have any ideas or examples of code using mod_dbd?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux