[us...@httpd] Mixing rewrite with authn_dbd: Rewriting based on path value stored in mysql table

2009-02-24 Thread Roman Medina-Heigl Hernandez
Hello, I'm working on an ISP/Hosting environment and I'm having trouble to figure out how to solve a problem which (I think) involves mixing several modules/concepts: - pages should be protected with basic-auth where user database should reside on MySQL (mod_authn_dbd). The mysql table basically c

Re: [us...@httpd] Mixing rewrite with authn_dbd: Rewriting based on path value stored in mysql table

2009-02-24 Thread Roman Medina-Heigl Hernandez
Eric Covener escribió: > On Tue, Feb 24, 2009 at 7:44 AM, Krist van Besien > wrote: >> 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 >>&g

Re: [us...@httpd] Mixing rewrite with authn_dbd: Rewriting based on path value stored in mysql table

2009-02-26 Thread Roman Medina-Heigl Hernandez
Krist van Besien escribió: > That is just a guess however, can't try this out myself. Note to the > original poster: If you get this working could you post your solution > here? Of course, Krist. But before I could test it, I have to upgrade my Debian vm (etch->lenny), since mod-dbd seems to be ha

Re: [us...@httpd] Mixing rewrite with authn_dbd: Rewriting based on path value stored in mysql table

2009-03-02 Thread Roman Medina-Heigl Hernandez
Hello, I have a *partial*-working solution which I'd like to share with you. It's tricky (based on my own home structure) and limited, though. Feedback is appreciated, please! Some comments: - Debian 5.0 includes ajp 1.2.12, so I cannot get the url/dir from another column in users' table (this fu

Re: [us...@httpd] Mixing rewrite with authn_dbd: Rewriting based on path value stored in mysql table

2009-05-11 Thread Roman Medina-Heigl Hernandez
t? Perhaps there's another (secure) way to mark the request as "rewritten", so I could check later without the need to compare against "!^/clientes/[^/]+/stats/http/". Please, help! :-( Cheers, -r Roman Medina-Heigl Hernandez escribió: > Hello, > > I hav

Re: [us...@httpd] Mixing rewrite with authn_dbd: Rewriting based on path value stored in mysql table

2009-05-11 Thread Roman Medina-Heigl Hernandez
Bob Ionescu escribió: > 2009/3/2 Roman Medina-Heigl Hernandez : >> More comments: >> - at the beginning I tried something like: >> RewriteBase /stats >> RewriteCond $1 !^%{REMOTE_USER}/ >> RewriteRule ^/clientes/(.*) >&

Re: [us...@httpd] Mixing rewrite with authn_dbd: Rewriting based on path value stored in mysql table

2009-05-12 Thread Roman Medina-Heigl Hernandez
Bob Ionescu escribió: > 2009/5/11 Roman Medina-Heigl Hernandez : >> Bob Ionescu escribió: >>> 2009/3/2 Roman Medina-Heigl Hernandez : >>>> The problem is that you cannot have %{REMOTE_USER} as 2nd parameters in >>>> RewriteCond, so I have no way for compa

Re: [us...@httpd] Mixing rewrite with authn_dbd: Rewriting based on path value stored in mysql table

2009-05-12 Thread Roman Medina-Heigl Hernandez
Bob Ionescu escribió: > 2009/5/12 Roman Medina-Heigl Hernandez : >> My final solution is: >> >>RewriteBase /stats >>RewriteCond %{REMOTE_USER}/<>$1 !^([^<]+)<>\1 >>RewriteRule ^/clien