Re: Using mod_rewrite in my authorization module. Need advice.

2010-02-06 Thread Rainer Jung
On 04.02.2010 08:56, Kevac Marko wrote: On Thu, Feb 4, 2010 at 10:52 AM, Sorin Manolache wrote: Try to set an apache request note in the authentication instead of dynamically changing the configuration of mod_rewrite.c. Thus, you'll have something like RewriteRule /url %{ENV:destination} The

Re: Using mod_rewrite in my authorization module. Need advice.

2010-02-04 Thread Kevac Marko
On Thu, Feb 4, 2010 at 2:05 PM, Sorin Manolache wrote: > No, you cannot. The expansion does not work in the pattern (the second > argument). > > But the second argument can be a regular expression. Hopefully you can > write regexps for all your cases. Unfortunately I cannot. These should be in DB

Re: Using mod_rewrite in my authorization module. Need advice.

2010-02-04 Thread Sorin Manolache
On Thu, Feb 4, 2010 at 08:56, Kevac Marko wrote: > On Thu, Feb 4, 2010 at 10:52 AM, Sorin Manolache wrote: >> Try to set an apache request note in the authentication instead of >> dynamically changing the configuration of mod_rewrite.c. >> >> Thus, you'll have something like >> >> RewriteRule /ur

Re: Using mod_rewrite in my authorization module. Need advice.

2010-02-04 Thread Kevac Marko
On Thu, Feb 4, 2010 at 10:52 AM, Sorin Manolache wrote: > Try to set an apache request note in the authentication instead of > dynamically changing the configuration of mod_rewrite.c. > > Thus, you'll have something like > > RewriteRule /url %{ENV:destination} > > The configuration would be always

Re: Using mod_rewrite in my authorization module. Need advice.

2010-02-03 Thread Sorin Manolache
On Thu, Feb 4, 2010 at 08:20, Kevac Marko wrote: > Thanks a lot for your comments. > > I'll try to describe requirements for our authorization module and > current implementation a little bit more. > > Requirements: > 1. Authorization must happen before mod_cache (also a little bit fixed > for our

Re: Using mod_rewrite in my authorization module. Need advice.

2010-02-03 Thread Kevac Marko
On Thu, Feb 4, 2010 at 1:12 AM, Ray Morris wrote: >  That's three ideas. :)  Seriously, I suggest you back up > a step or three.  You said "Reimplement needed mod_rewrite > functionality in out authorization module.".  98% of mod_rewrite > consists of handling it's very flexible configuration > sy

Re: Using mod_rewrite in my authorization module. Need advice.

2010-02-03 Thread Ray Morris
Only two ideas came into my mind: 1) Reimplement needed mod_rewrite functionality in out authorization module. 2) Patch or fork mod_rewrite module. Implement some API (like rewrite(from, to);) which could be used for url rewriting with full mod_rewrite power. 3) Patch mod_rewrite and enclose Re

Re: Using mod_rewrite in my authorization module. Need advice.

2010-02-03 Thread Sorin Manolache
By the way. The order in which the callbacks are called is translate_name, then authentication/authorisation and last fixups. If you put the RewriteRule at server level then it is applied during the translate_name callback. If you put it inside a directive, it is applied during the fixups callba