On Tue, 10 Jul 2001, Gerald Richter wrote:
 
> The docs says:
> 
> SetEnv directive
> Syntax: SetEnv variable value
> Context: server config, virtual host
> Status: Base
> Module: mod_env
> Compatibility: SetEnv is only available in Apache 1.1 and later.
> Sets an environment variable, which is then passed on to CGI scripts and SSI
> pages. Example:
> 
> There is no "directory, .htaccess" in the context and that's like it really
> behaves. (unless they changed it in a very recent version and didn't update
> the docs, which I don't expect)
> 
> PerlSetEnv is the only chance to have different values in different
> directories.

i think the docs are out-of-date, seems to work inside location:

--- t/conf/httpd.conf~  Mon Jul  9 20:23:10 2001
+++ t/conf/httpd.conf   Tue Jul 10 08:35:03 2001
@@ -160,6 +160,7 @@
 </Location>
 
 <Location /perl/perl-status>
+SetEnv mod_env location
 PerlSetVar StatusOptionsAll On
 SetHandler perl-script
 PerlHandler +Apache::Status

% GET 'http://localhost:8529/perl/perl-status?env' | grep mod_env
mod_env = location


Reply via email to