Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 55421 invoked from network); 10 Mar 2008 12:14:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Mar 2008 12:14:45 -0000 Received: (qmail 52584 invoked by uid 500); 10 Mar 2008 12:14:33 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 52568 invoked by uid 500); 10 Mar 2008 12:14:33 -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 52557 invoked by uid 99); 10 Mar 2008 12:14:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2008 05:14:33 -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 thorsten.scherler.ext@juntadeandalucia.es designates 217.12.18.114 as permitted sender) Received: from [217.12.18.114] (HELO mta.juntadeandalucia.es) (217.12.18.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2008 12:13:57 +0000 Received: from [10.240.225.254] (helo=mail.juntadeandalucia.es) by guadix1.juntadeandalucia.es with esmtps (TLSv1:AES256-SHA:256) (Exim 4.60) (envelope-from ) id 1JYgtI-00068L-TH for users@httpd.apache.org; Mon, 10 Mar 2008 13:14:05 +0100 Received: from [10.240.192.30] by mail.juntadeandalucia.es with esmtpa (Exim 4.60) (envelope-from ) id 1JYgtI-0002lw-BV for users@httpd.apache.org; Mon, 10 Mar 2008 13:14:04 +0100 From: Thorsten Scherler To: users@httpd.apache.org In-Reply-To: <6ed6382b0803100320s4a225086ye87bd00855821655@mail.gmail.com> References: <1205139495.32390.17.camel@localhost> <6ed6382b0803100320s4a225086ye87bd00855821655@mail.gmail.com> Content-Type: text/plain Date: Mon, 10 Mar 2008 13:12:20 +0100 Message-Id: <1205151140.7748.9.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit X-SA-Report: * -0.2 ALL_TRUSTED Passed through trusted hosts only via SMTP X-Spam-Score: -0.2 (/) X-Spam-Score-Int: -1 X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] mod_rewrite E flag does not set env. variable On Mon, 2008-03-10 at 11:20 +0100, Krist van Besien wrote: > On Mon, Mar 10, 2008 at 9:58 AM, Thorsten Scherler > wrote: > > Hi all, > > > > I am trying to use the E flag in some of my rewrite rules but without > > suggest. > > > > I have following configuration: > > RewriteMap portadaboja txt:/opt/datos/httpd/redirect.txt > > RewriteRule "^/BOJA$" > > "http://%{HTTP_HOST}/boja/${portadaboja:boletin}" [E=FOCUS:true,R] > > > > The redirect works fine but when I use in my ssi the following: > > > > 1. > > 2. > > 3. > > > > The out put is: > > 1. 2. 3. (none) > > > > I am using apache2 as package from Ubuntu (2.2.3-3.2ubuntu2.1). > > > > Can somebody explain me what I am doing wrong? > > You are doing a redirect. Which means that after the rule matches the > client gets a response and starts a _new_ request. The apache process > handling this new request does not have access to environment > variables set in a previous request. > > Krist Thanks very much Krist for this explanation. So I need to find a workaround. salu2 > -- Thorsten Scherler thorsten.at.apache.org Open Source Java consulting, training and solutions --------------------------------------------------------------------- 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