Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 47061 invoked from network); 22 May 2007 17:46:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 May 2007 17:46:00 -0000 Received: (qmail 96577 invoked by uid 500); 22 May 2007 17:45:55 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 96553 invoked by uid 500); 22 May 2007 17:45:55 -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 96542 invoked by uid 99); 22 May 2007 17:45:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 May 2007 10:45:55 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jslive@gmail.com designates 64.233.162.226 as permitted sender) Received: from [64.233.162.226] (HELO nz-out-0506.google.com) (64.233.162.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 May 2007 10:45:47 -0700 Received: by nz-out-0506.google.com with SMTP id z3so2577246nzf for ; Tue, 22 May 2007 10:45:27 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; 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; b=TqTwpQed4v8UfJoeCl1dZ1yux+hvJzdLPu7R7vJxY2z9fJCwe3RAK5YB1EIpzqER3Mvuqwg3UE2IPGyhPtaecd17BScaXQXyYTW0HJ4yB+aF7j6NGdsA9+sW+Ko40eRiP/qv66V8dgaQGBEJnvcDR3EdmhoP/APizpysEVT9BY4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=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; b=f7lMi6INLVsX9+cgHFGVhUc4BaPKUIwmghfCWlFyY/w9i/jAbaJyT/UDWyXEZVbS3lmhSrwyWxkenee5ynvBrBRKYKw/A1yHt9EitT6npx51Jv4mRBSwkwmJtAzQhIme4uHc8QlMNc+PXQ6BJcfwkmAS6qiPqDqMtqTDJ3H/+Bc= Received: by 10.114.123.1 with SMTP id v1mr3366755wac.1179855926803; Tue, 22 May 2007 10:45:26 -0700 (PDT) Received: by 10.114.53.5 with HTTP; Tue, 22 May 2007 10:45:26 -0700 (PDT) Message-ID: Date: Tue, 22 May 2007 13:45:26 -0400 From: "Joshua Slive" Sender: jslive@gmail.com To: users@httpd.apache.org In-Reply-To: <46532A43.8000902@agenstvo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4651E769.9050605@agenstvo.com> <46532A43.8000902@agenstvo.com> X-Google-Sender-Auth: 48959609ac88f59a X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Experience in mod_rewrite in Apache 2.2 On 5/22/07, Dmitriy Gorbenko wrote: > I think I could do it using mod_rewrite, but now I understand, that I > can't: in apache config file I can create rules, which will makes an > decision: redirect or proxy request of client (R and P flags). > But by using external program I can't make such decision. > And that is a problem. Ahhh, so your question is: how do I activate rewrite flags from a prg: RewriteMap. (Not at all clear from your first email.) Indeed, this can't be done directly, but it can be easily done indirectly. For example, have your map program prefix the URL with proxy: or redirect: depending on what you want, and then: RewriteRule ^(.+)$ ${rd:%{THE_REQUEST}} RewriteRule ^proxy:(.*)$ $1 [P] RewriteRule ^redirect:(.*)$ $1 [R] (Use the RewriteLog to debug!) 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