Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 11955 invoked from network); 17 Aug 2005 19:13:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Aug 2005 19:13:41 -0000 Received: (qmail 78931 invoked by uid 500); 17 Aug 2005 19:13:31 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 78917 invoked by uid 500); 17 Aug 2005 19:13:31 -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 78904 invoked by uid 99); 17 Aug 2005 19:13:31 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2005 12:13:31 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jslive@gmail.com designates 64.233.184.197 as permitted sender) Received: from [64.233.184.197] (HELO wproxy.gmail.com) (64.233.184.197) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2005 12:13:50 -0700 Received: by wproxy.gmail.com with SMTP id 37so274831wra for ; Wed, 17 Aug 2005 12:13:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Of7Zvm1Tu2d27dVUJawfeHRs9vyjt4CuiWTOoGH5jOT3YAr5UV5cR2Hl6j/gJrkUIWRGLnx4jlFfmSOWVTSjGcv6b4B6NPj3uR1FYPlBev3XG/BPejqJx83QSUVaXVHlgs6whiLG7Fg8Qy6mY9NLjdueN63AP2PBtKVYy3cAGaU= Received: by 10.54.56.24 with SMTP id e24mr656152wra; Wed, 17 Aug 2005 12:13:28 -0700 (PDT) Received: by 10.54.61.7 with HTTP; Wed, 17 Aug 2005 12:13:28 -0700 (PDT) Message-ID: Date: Wed, 17 Aug 2005 15:13:28 -0400 From: Joshua Slive To: users@httpd.apache.org In-Reply-To: <7796799a0508171145220bc6bd@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <7796799a0508171145220bc6bd@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] RewriteMap and sending more then 1 var X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 8/17/05, Tony VanScoy wrote: > .. works great. My question is about sending more then just 1 > backreference to the map program. In this case, I'm sending %1. Can I > add to that? What if i wanted to also send the HTTP_REFERER, or the > REMOTE_HOST? These values would be great since I use the mapping > program to log the downloads to a database. >=20 > Would something like this work? Have you tried it? What happened?=20 >=20 > RewriteRule ^/getpdf\.php$ > /pdf/${pdfFile:"%1|%{HTTP_REFERER}|%{REMOTE_HOST}"}? > [R,L,T=3Dapplication/pdf] >=20 > I could just make one long string to be sent, with the values > separated by a pipe, where my mapping program could parse through and > get each individual value. I'm sure you know what I'm looking for at > this point and time, so any feedback on ways to do this would be > appreciated. Your idea is basically fine, except you should pick a character other than= =20 |, because that character is special in a rewritemap (used to designate a default value). (Perhaps it doesn't matter if it is in quotes; I've never tried this myself.) But you worry me a little when you talk about all the stuff you are doing in your RewriteMap. These programs should be extremly simple because they run as root, and they are a choke point in that only one request at a time can be processed through the RewriteMap. 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