Created attachment 21878 [details] Support for negation for env vars Although mentioned here http://httpd.apache.org/docs/2.2/howto/access.html, actually it's not implemented. Therefore the directive below has no effect: Deny from env=!HAS_SOMEVAR Attached is a patch, which remedies this problem. If, for some reason, this is not fixed, the documentation should be modified to reflect this limitation.
I think howto/access.html is wrong. env!= is not mentioned in the module manual. http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html
But it is supported pretty-much every else that the env= option is available for a directive, so it should be available here too. Marking as an enhancement request with PatchAvailable.
I consider this issue a bug, since this kind of configuration is explicitly mentioned in authoritative Apache documentation (http://httpd.apache.org/docs/2.2/howto/access.html)
The classification is irrelevant. (Nobody looks at those fields in bugzilla anyway.) But I'll change it back if it makes you feel better.
I've modified the document http://svn.apache.org/viewvc?rev=665707&view=rev I agree env!= is useful so leave this Open as enhancement request.
Applied to trunk http://svn.apache.org/viewvc?rev=667513&view=rev Backport Proposal http://svn.apache.org/viewvc?rev=667517&view=rev
backported to 2.2 http://svn.apache.org/viewvc?rev=667776&view=rev document http://svn.apache.org/viewvc?rev=675568&view=rev http://svn.apache.org/viewvc?rev=675570&view=rev