Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 76901 invoked from network); 29 Apr 2005 13:19:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Apr 2005 13:19:57 -0000 Received: (qmail 6461 invoked by uid 500); 29 Apr 2005 13:20:29 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 6446 invoked by uid 500); 29 Apr 2005 13:20:29 -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: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 6433 invoked by uid 99); 29 Apr 2005 13:20:29 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jslive@gmail.com designates 64.233.184.195 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.195) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 29 Apr 2005 06:20:29 -0700 Received: by wproxy.gmail.com with SMTP id 67so1206748wri for ; Fri, 29 Apr 2005 06:19:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=U7a/rhnnQjUAFeWosW7EzCGxEhYF+iCF35ymi09sSX0olJHIogUkNW5X9DfYXC9X10P2t+q0AfaZt2seTBLx+huDzjsG6c63v5O02+CZK/5T2YNisiru2bY4jy3fLElR+oFn8vQjUB3JjcLDKdLwVU0k3rlw5jYHJYTGn/PrRyc= Received: by 10.54.124.1 with SMTP id w1mr1345759wrc; Fri, 29 Apr 2005 06:19:10 -0700 (PDT) Received: by 10.54.62.11 with HTTP; Fri, 29 Apr 2005 06:19:10 -0700 (PDT) Message-ID: Date: Fri, 29 Apr 2005 09:19:10 -0400 From: Joshua Slive Reply-To: Joshua Slive To: users@httpd.apache.org In-Reply-To: <200504291318.25931@centrum.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200504291318.25931@centrum.cz> X-Virus-Checked: Checked Subject: Re: [users@httpd] apache2 REQUEST_FILENAME X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 4/29/05, ovar <0var@centrum.cz> wrote: > > If I remember correctly, REQUEST_FILENAME is set only by mod_rewrite, s= o > > RewriteEngine On > > will probably activate it. >=20 > Hm, didn't work for me. Empty even with "RewriteEngine On" (in appropriat= e virtualhost). And I really don't see the place in sources where REQUEST_F= ILENAME is set. >=20 > modules/ssl/ssl_engine_vars.c: strcEQ(var, "REQUEST_FILEN= AME")) > modules/arch/netware/mod_nw_ssl.c: else if (strcEQ(var, "REQUE= ST_FILENAME")) > modules/mappers/mod_rewrite.c: strcasecmp(var, "REQUEST_FILEN= AME") =3D=3D 0 ) { >=20 > These are just comparisons, right? If you look at that section of the code in mod_rewrite, you'll see that mod_rewrite makes that variable available to its variable-expansion mechanism, but doesn't actually set it in the environment. Hence it is only available for mod_rewrite. You may be able to force it into the environment, using something like RewriteCond %{REQUEST_FILENAME} (.*) RewriteRule .* - [E=3DREQUEST_FILENAME:%1] 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