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
<Directory "Z:/Web Root">
    Options FollowSymLinks
    AllowOverride None
      Order allow,deny
    allow from env=TEST_VAR
</Directory>
   
  ******************** BUT ******
  changing "env=TEST_VAR" to "all" grants access, shown below:
   
  SetEnv TEST_VAR
<Directory "Z:/Web Root">
    Options FollowSymLinks
    AllowOverride None
      Order allow,deny
    allow from all
</Directory>
   
  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.  
   
  Any help is appreciated.

       
---------------------------------
Get easy, one-click access to your favorites.  Make Yahoo! your homepage.

Reply via email to