httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krist van Besien <>
Subject Re: [users@httpd] Mixing rewrite with authn_dbd: Rewriting based on path value stored in mysql table
Date Tue, 24 Feb 2009 12:44:29 GMT
On Tue, Feb 24, 2009 at 12:58 PM, Roman Medina-Heigl Hernandez
<> wrote:
> So for instance, accesing to http://isp/stats/ should:
> 1.- Ask for user/pass
> 2.- If the user exists in MySQL table (and password is ok), the path
> (associated to that user) should be retrieved from the same table. Let's
> say we have user "Tom" with path "/home/Tom".
> 3.- Finally Apache should serve /home/Tom/stats/.
> Is this achievable?

Achievable, but not in a trivial way. How you solve this also depends
on how fast this has to be. What you could do for example is
periodically export the user-path pairs to a DBM file, and us that as
a RewriteMap. That will be pretty fast, but changes to the MySQL table
will not reflect on your website immediately.


Bremgarten b. Bern, Switzerland
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message