httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keith Sawmiller <k_sawm...@yahoo.com>
Subject [users@httpd] Win32 Apache 2.2.6 Allow from env= issue
Date Sat, 24 Nov 2007 05:31:37 GMT
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.
Mime
View raw message