> -----Original Message-----
> From: Rainer Jung 
> Sent: Donnerstag, 17. Dezember 2009 15:56
> To: dev@httpd.apache.org
> Subject: Re: [Proposal for trunk] Extending RewriteMap, 
> Reusing ip network matches
> 
> On 17.12.2009 14:32, "Plüm, Rüdiger, VF-Group" wrote:
> >
> >
> >> -----Original Message-----
> >> From: Rainer Jung
> >> Sent: Donnerstag, 17. Dezember 2009 13:38
> >> To: dev@httpd.apache.org
> >> Subject: [Proposal for trunk] Extending RewriteMap, Reusing
> >> ip network matches
> >>
> >> 1) Extending RewriteMap
> >> =======================
> >>
> >> I plan to extend key file handling in text file RewriteMap. At the
> >> moment keys are always matched as exact strings against the
> >> map. I want
> >> to add the ability to alternatively
> >>
> >> a) match via regexp (and replace backreferences in the 
> found values)
> >
> > Can you give an example for this?
> > Where are these regexps? In the map file or in the 
> expression of the Map in the RewriteRule?
> 
> The regular expressions are the first columns in the map file. The 
> actual keys searched for will be normal strings matched against those 
> regexps. The result returned is the second column with backreferences 
> resolved against the match from the first column and the key.

I see some performance issue with this approach since each time one thing
in the file changes *all* regexps need to be recompiled. If it is a large
file that changes frequently this can eat up a considerable amount of cycles.

Regards

Rüdiger

Reply via email to