Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 86180 invoked from network); 24 Nov 2007 15:11:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Nov 2007 15:11:38 -0000 Received: (qmail 31050 invoked by uid 500); 24 Nov 2007 15:11:15 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 31034 invoked by uid 500); 24 Nov 2007 15:11:15 -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 31023 invoked by uid 99); 24 Nov 2007 15:11:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Nov 2007 07:11:15 -0800 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 jslive@gmail.com designates 64.233.166.176 as permitted sender) Received: from [64.233.166.176] (HELO py-out-1112.google.com) (64.233.166.176) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Nov 2007 15:10:56 +0000 Received: by py-out-1112.google.com with SMTP id u52so366279pyb for ; Sat, 24 Nov 2007 07:10:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=JLHd4kXC5OhDil6rC91JB46zZKlSPgvBRAE6gFs/WRY=; b=K6b2uJh2tKvGUYHctIbTRY6EKQ2SbHJjc/wKmnM60Iz1dP+ObiGikqlyZM3MTsJtS41P1qZPsAsdxuYyi75me3o8no3RPW4o51GKSeMBjlGUi4aiZs2NE2IdLoQghpPBqY0GQjDlfhL2qPhK5Yd9P3pemzlk0QbljI6wr6eWuMc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=D2zunJ474l32RnqkisEghfX+NWYM6ez9RiMxzTdnG9nMXF++PMBW+bVLZAAMNxTdOgPr4p/roPxoWiFtt6avfrjG2+fj3RgA9Kvhqz7XHSdMufU54+WdJV6ttJxudQ5IK1x7rlBrXcJ0+RlGqpWvXmiwARvng7Efw7EbWiLfUFs= Received: by 10.64.181.12 with SMTP id d12mr1237901qbf.1195917057684; Sat, 24 Nov 2007 07:10:57 -0800 (PST) Received: by 10.65.183.10 with HTTP; Sat, 24 Nov 2007 07:10:57 -0800 (PST) Message-ID: Date: Sat, 24 Nov 2007 10:10:57 -0500 From: "Joshua Slive" Sender: jslive@gmail.com To: users@httpd.apache.org In-Reply-To: <360463.92788.qm@web34210.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <360463.92788.qm@web34210.mail.mud.yahoo.com> X-Google-Sender-Auth: c4b50b485cbd7e9d X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Win32 Apache 2.2.6 Allow from env= issue On Nov 24, 2007 12:31 AM, Keith Sawmiller wrote: > I'm trying to restrict access to only instances where an environment > variable is present (eventually to be set via PHP) > > This simple case (from httpd.conf) denies access: > > SetEnv TEST_VAR > > Options FollowSymLinks > AllowOverride None > Order allow,deny > allow from env=TEST_VAR > > > ******************** BUT ****** > changing "env=TEST_VAR" to "all" grants access, shown below: > > SetEnv TEST_VAR > > Options FollowSymLinks > AllowOverride None > Order allow,deny > allow from all > > > It seems like Apache is not passing the "env=TEST_VAR" test, even though > everything I've found in the documentation and forums says this should work. Try SetEnvIf instead. SetEnv acts during a different phase of processing, which may be too late to make this work. (You may have similar problems with trying to set an env variable in php and use it in the apache config. I've never tried it myself.) 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