httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <rainer.j...@kippdata.de>
Subject Re: [Proposal for trunk] Extending RewriteMap, Reusing ip network matches
Date Thu, 17 Dec 2009 14:55:54 GMT
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.

Regards,

Rainer

Mime
View raw message