httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Re: Apache documentation inadequate for order/allow/deny (fwd)
Date Sat, 19 Apr 1997 19:35:53 GMT
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

Mime
View raw message