Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 82129 invoked from network); 4 Jun 2008 16:09:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jun 2008 16:09:14 -0000 Received: (qmail 20831 invoked by uid 500); 4 Jun 2008 16:09:03 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 20812 invoked by uid 500); 4 Jun 2008 16:09:03 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 20758 invoked by uid 99); 4 Jun 2008 16:09:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 09:09:03 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jslive@gmail.com designates 74.125.46.157 as permitted sender) Received: from [74.125.46.157] (HELO yw-out-1718.google.com) (74.125.46.157) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 16:08:14 +0000 Received: by yw-out-1718.google.com with SMTP id 6so90290ywa.84 for ; Wed, 04 Jun 2008 09:08:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=73DEwPlXGqIFtkjVpaJcim18qLvGHzYD6htpXuVRBzg=; b=MrBKxcpdE7YOj/UNRbn+YDPvDE1Ka2jmWUVf8S7dBNuX6RSm2EcGm8LyJ9H21yb2Xa Cun05U+QEujpytXVklPV5CVQkBL5gzroXD+iZZaiyw1N2KT767rcp1HalESbv1ic4nqj HXBdnhG8o2YWd/dqcq6E80VJ2QyJr03nZa0/U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=rQYAgvHvJR9GuA+9l5yH2+2reB0e+KHwk/ntUeVsLPj2JePJwZEoM8rDSVFRcyk+cD urYhCquQCpM6RWoOD9sggg28V7k6hA7EzCw7grA2VtrKCZKp/5vwN6xM1dx6qe9cFuzW 8SvhRC//etsOmuo56PNoSZfEPBH446sWKQGi4= Received: by 10.151.108.3 with SMTP id k3mr293012ybm.172.1212595708850; Wed, 04 Jun 2008 09:08:28 -0700 (PDT) Received: by 10.150.198.4 with HTTP; Wed, 4 Jun 2008 09:08:28 -0700 (PDT) Message-ID: Date: Wed, 4 Jun 2008 12:08:28 -0400 From: "Joshua Slive" Sender: jslive@gmail.com To: users@httpd.apache.org In-Reply-To: <20080604110044.4894030d@sinkhole.intrcomm.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080604110044.4894030d@sinkhole.intrcomm.net> X-Google-Sender-Auth: 00422e3a9b3f4db9 X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] RewriteMap question 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. > > Is it possible to start multiple instances of this program? No, not directly. A few possibilities: 1. Try to do whatever you are doing without an prg: rewritemap. These should really be a last resort for problems that are too complicated to solve in any other way. Of course, since we don't have any details of the problem, we can't help there. 2. Call a php script directly to issue the redirect, rather than going through mod_rewrite. 3. Have mod_rewrite split the request into several different paths and use an independent rewritemap for each path. This could be as simple as RewriteCond %{REQUEST_URI} ^[a-n] RewriteRule ... using map 1 [L] RewriteRule ... using map 2 Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org