Received: (from majordom@localhost) by hyperreal.com (8.8.4/8.8.4) id MAA21850; Sat, 19 Apr 1997 12:41:44 -0700 (PDT) Received: from eastwood.aldigital.algroup.co.uk (eastwood.aldigital.algroup.co.uk [194.128.162.193]) by hyperreal.com (8.8.4/8.8.4) with SMTP id MAA21844 for ; Sat, 19 Apr 1997 12:41:40 -0700 (PDT) Received: from gonzo.ben.algroup.co.uk (gonzo.ben.algroup.co.uk [193.133.15.1]) by eastwood.aldigital.algroup.co.uk (8.6.12/8.6.12) with SMTP id TAA01018 for ; Sat, 19 Apr 1997 19:41:23 GMT Subject: Re: Apache documentation inadequate for order/allow/deny (fwd) To: new-httpd@apache.org Date: Sat, 19 Apr 1997 20:35:53 +0100 (BST) From: Ben Laurie In-Reply-To: from "Paul Sutton" at Apr 19, 97 08:21:04 pm X-Mailer: ELM [version 2.4 PL24 PGP2] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID: <9704192035.aa14695@gonzo.ben.algroup.co.uk> Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org Paul Sutton wrote: > SetEnvIf remote_host /.*\.x\.y/ isprivate=1 > SetEnvIf remote_host /^public\..*\.x\.y$/ isprivate=0 > > ... > > order allow,deny > deny from all > allow from env=ispublic env=isprivate, I think you mean. > > I think (actually this doesn't quite work since the env=X checking looks > to see if the envvar has a value, not whether the value is zero. Shame). It doesn't seem unreasonable to make that mod, or to add a new keyword. Or you could add UnsetEnvIf (and perhaps {Unset|Set}EnvIfNot would be handy, too). Cheers, Ben. -- ** Buy "Apache: The Definitive Guide" from http://www.links.org/apache ** Ben Laurie Phone: +44 (181) 994 6435 Email: ben@algroup.co.uk Freelance Consultant and Fax: +44 (181) 994 6472 Technical Director URL: http://www.algroup.co.uk/Apache-SSL A.L. Digital Ltd, Apache Group member (http://www.apache.org) London, England. Apache-SSL author