Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 34356 invoked by uid 500); 17 Apr 2002 00:12:48 -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 34342 invoked from network); 17 Apr 2002 00:12:47 -0000 Received: from smithers.sfrn.dnai.com (208.59.199.26) by daedalus.apache.org with SMTP; 17 Apr 2002 00:12:47 -0000 Received: from sideshow-mel.sfrn.dnai.com (sideshow-mel.sfrn.dnai.com [208.59.199.19]) by smithers.sfrn.dnai.com (8.11.2/8.11.2) with ESMTP id g3H08w008851 for ; Tue, 16 Apr 2002 17:08:58 -0700 (PDT) Received: from datawebsystems.com (208-59-198-132.s132.tnt1.dsfr.ca.dialup.rcn.com [208.59.198.132]) by sideshow-mel.sfrn.dnai.com (8.11.3/8.11.3) with ESMTP id g3H07Zd46890 for ; Tue, 16 Apr 2002 17:07:36 -0700 (PDT) (envelope-from davidp@datawebsystems.com) Message-ID: <3CBCBED0.34989E19@datawebsystems.com> Date: Tue, 16 Apr 2002 17:16:16 -0700 From: David Pellegrini Organization: dataweb systems, inc. X-Mailer: Mozilla 4.72 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: users@httpd.apache.org Subject: Re: Use of env vars in httpd.conf wrt mod_rewrite References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Joshua Slive wrote: > > On Tue, 16 Apr 2002, David Pellegrini wrote: > > > > This works, but it's ugly, and repeats information I've already hardcoded in the > > DocumentRoot directive. If I move my document root, I have to remember to > > update my RewriteCond's as well (and what are the chances of that happening the > > first time?). Ideally I'd just dereference the value of DocumentRoot in my > > RewriteCond record, but I don't know how to do that (or if it's possible). > > So that's question #1. As an alternative, I tried using SetEnv to establish the > > document root, then dereference it in the DocumentRoot and RewriteCond records, > > but that doesn't work. Example: > > > > Ummm... What's wrong with the DOCUMENT_ROOT environment variable that > is referenced here: > http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteCond > > Joshua. I was getting the default document root, not the virtual host's. I just now tried it again and it worked, so I must've screwed up the vhost definition somehow when I tried it earlier. I'm so embarrassed. Still, now I'm curious how to reference env vars within httpd.conf. http://httpd.apache.org/docs/env.html doesn't address it. Thanks! -davidp --------------------------------------------------------------------- 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 For additional commands, e-mail: users-help@httpd.apache.org