httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Covener" <>
Subject Re: [users@httpd] RewriteMap question
Date Wed, 04 Jun 2008 17:07:48 GMT
On Wed, Jun 4, 2008 at 12:00 PM, Josh Trutwin <> wrote:
> We have a RewriteMap program that is kicked off via the following:
> RewriteMap smc_rewriter prg:/usr/share/php/rewriter.php
> This works well most of the time, but for heavy use it really can bog
> down as there is always only one of these programs running to handle
> all the requests.

I've looked at something similar recently in 2.0.x, where one of the
big recommendations was to make sure to limit the # of times per
request that you consult the map.  This means making the regex on your
rewriterule as explicit as possible, and capturing the results of the
rewritemap lookup in an environment variable whenever it's going to be
used/consulted more then once.

Eric Covener

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message