Re: RewriteMap question

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

 



On Wed, Jun 4, 2008 at 12:00 PM, Josh Trutwin <josh@xxxxxxxxxxxxxxxxxxx> 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
covener@xxxxxxxxx

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