Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 63334 invoked from network); 23 Apr 2010 13:10:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Apr 2010 13:10:10 -0000 Received: (qmail 43803 invoked by uid 500); 23 Apr 2010 13:10:07 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 43728 invoked by uid 500); 23 Apr 2010 13:10:07 -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 43720 invoked by uid 99); 23 Apr 2010 13:10:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Apr 2010 13:10:07 +0000 X-ASF-Spam-Status: No, hits=1.7 required=10.0 tests=FORGED_YAHOO_RCVD,FREEMAIL_FROM,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [198.60.84.20] (HELO insourcery.com) (198.60.84.20) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Apr 2010 13:09:59 +0000 Received: from teapot.bifb.org (c-69-243-5-179.hsd1.md.comcast.net [69.243.5.179]) (authenticated bits=0) by insourcery.com (8.13.8/8.13.8) with ESMTP id o3ND9Xn8007609 for ; Fri, 23 Apr 2010 06:09:38 -0700 Date: Fri, 23 Apr 2010 09:09:33 -0400 From: fgorm@yahoo.com To: users@httpd.apache.org Message-ID: <20100423130932.GA3949@teapot.bifb.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (insourcery.com [198.60.84.3]); Fri, 23 Apr 2010 06:09:39 -0700 (MST) Subject: [users@httpd] Locating a web app with .htaccess We are using Apache 2.2.3 on RHEL. We have a number of web applications which occasionally get moved from directory to directory on the server. Everything is relocatable except the apps need to know the directory in which they live in order to find template files, etc.. How can we automatically/implicitly set, in a .htaccess file, an environment variable to the directory containing that .htaccess file? Something akin to SetEnv APPLICATION_ROOT `pwd` or SetEnv APPLICATION_ROOT `basename(.htaccess)` to use a Bourne shell-ish. Fred --------------------------------------------------------------------- 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