Re: Mixing rewrite with authn_dbd: Rewriting based on path value stored in mysql table

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

 



Bob Ionescu escribió:
> 2009/3/2 Roman Medina-Heigl Hernandez <roman@xxxxxxxxxxx>:
>> More comments:
>> - at the beginning I tried something like:
>>               RewriteBase /stats
>>               RewriteCond $1 !^%{REMOTE_USER}/
>>               RewriteRule ^/clientes/(.*)
>> /stats/%{REMOTE_USER}/stats/http/$1 [PT]
>>
>> The problem is that you cannot have %{REMOTE_USER} as 2nd parameters in
>> RewriteCond, so I have no way for comparing it with $1
> 
> -didn't read all-; but you can compare it with a regEx internal backreference.
> 
> RewriteBase /stats
> RewriteCond %{REMOTE_USER}<>$1 !^([^<]+)<>\1

Could you explain that, please? I didn't know that syntax...

> RewriteRule ^/clientes/(.*) /stats/%{REMOTE_USER}/stats/http/$1 [L]

Why did you removed PT and used L?

Wow!!!! I must say I'm frankly amazed, it seems it's working!! :-O  But I'd
like to understand it in depth. Please, Bob, could you explain the trick to
me? :)))))

Thank you!!!

-- 

Saludos,
-Roman

PGP Fingerprint:
09BB EFCD 21ED 4E79 25FB  29E1 E47F 8A7D EAD5 6742
[Key ID: 0xEAD56742. Available at KeyServ]

---------------------------------------------------------------------
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