RE: PerlSetupEnv bug?
-Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED]] Sent: Monday, May 29, 2000 8:21 AM To: Geoffrey Young Cc: '[EMAIL PROTECTED]' Subject: Re: PerlSetupEnv bug? I can't seem to get PerlSetupEnv to affect my perl-bin anyplace other than in the perl-bin Location tag that is: PerlSetupEnv Off Alias /perl-bin/ /usr/local/apache/perl-bin/ Location /perl-bin SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI Order Allow,Deny Allow from All # PerlSetupEnv Off /Location still gives me a cgi-populated %ENV for a normal Registry script. If I swap the directives, all is ok. According to mod/mod_perl.html the directive should be able to go anywhere can anyone else verify this? or am I missing something... Sure, here comes: thanks Stas :) I don't know what's the right behavior should be but, I've tested my setup: 1.24/1.3.12/5.005_03/rh6.2 and here is what I saw: Env.pm -- package Env; use strict; use Apache::Constants qw(:common); sub handler{ shift-send_http_header('text/plain'); print map {"$_ = $ENV{$_}\n"} keys %ENV; return OK; } 1; The following sets %ENV OFF Location /env SetHandler perl-script PerlHandler +Env PerlSetupEnv Off /Location The following doesn't set %ENV OFF Location /env SetHandler perl-script PerlHandler +Env PerlSetupEnv Off /Location am I missing something, or are these two setups the same? I'm sure it's just a typo ;) I've tried the same with Apache::Registry, no matter where I put the PerlSetupEnv directive, the %ENV is ON all the time. hmmm, I was able to get it to OFF but on a per-directory basis, not a per-server basis, including Registry scripts... I just checked again, and it's fine per-directory for me...I'm using 1.24_dev + 1.3.12 + 5.005_03(RH6.0) Are we on the same page? --Geoff I guess the enviroment is being enforced in Registry XS code, no matter what settings is. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://perl.org http://stason.org/TULARC http://singlesheaven.com http://perlmonth.com http://sourcegarden.org
RE: PerlSetupEnv bug?
-Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 30, 2000 8:14 AM To: Geoffrey Young Cc: '[EMAIL PROTECTED]' Subject: RE: PerlSetupEnv bug? On Tue, 30 May 2000, Geoffrey Young wrote: -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED]] Sent: Monday, May 29, 2000 8:21 AM To: Geoffrey Young Cc: '[EMAIL PROTECTED]' Subject: Re: PerlSetupEnv bug? I can't seem to get PerlSetupEnv to affect my perl-bin anyplace other than in the perl-bin Location tag that is: PerlSetupEnv Off Alias /perl-bin/ /usr/local/apache/perl-bin/ Location /perl-bin SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI Order Allow,Deny Allow from All # PerlSetupEnv Off /Location still gives me a cgi-populated %ENV for a normal Registry script. If I swap the directives, all is ok. According to mod/mod_perl.html the directive should be able to go anywhere can anyone else verify this? or am I missing something... Sure, here comes: thanks Stas :) I don't know what's the right behavior should be but, I've tested my setup: 1.24/1.3.12/5.005_03/rh6.2 and here is what I saw: Env.pm -- package Env; use strict; use Apache::Constants qw(:common); sub handler{ shift-send_http_header('text/plain'); print map {"$_ = $ENV{$_}\n"} keys %ENV; return OK; } 1; The following sets %ENV OFF Location /env SetHandler perl-script PerlHandler +Env PerlSetupEnv Off /Location The following doesn't set %ENV OFF Location /env SetHandler perl-script PerlHandler +Env PerlSetupEnv Off /Location am I missing something, or are these two setups the same? I'm sure it's just a typo ;) oops, a typo, should be: The following doesn't set %ENV OFF PerlSetupEnv Off Location /env SetHandler perl-script PerlHandler +Env /Location I've tried the same with Apache::Registry, no matter where I put the PerlSetupEnv directive, the %ENV is ON all the time. hmmm, I was able to get it to OFF but on a per-directory basis, not a per-server basis, including Registry scripts... It didn't work for me at all for Registry scripts as stated above. well, that's puzzling. I tried moving it into a vhost section from a shared section, with and without preloading scripts, and was able to toggle it off and on. oh, well... maybe addressing the issue at large will uncover our discrepancies... thanks for the time, though :) --Geoff I just checked again, and it's fine per-directory for me...I'm using 1.24_dev + 1.3.12 + 5.005_03(RH6.0) Are we on the same page? Almost, 1.24/1.3.12/5.005.03(rh6.2) here, I don't think the CVS version had any changes regarding SetupEnv since a release of 1.24. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://perl.org http://stason.org/TULARC http://singlesheaven.com http://perlmonth.com http://sourcegarden.org
Re: PerlSetupEnv bug?
I can't seem to get PerlSetupEnv to affect my perl-bin anyplace other than in the perl-bin Location tag that is: PerlSetupEnv Off Alias /perl-bin/ /usr/local/apache/perl-bin/ Location /perl-bin SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI Order Allow,Deny Allow from All # PerlSetupEnv Off /Location still gives me a cgi-populated %ENV for a normal Registry script. If I swap the directives, all is ok. According to mod/mod_perl.html the directive should be able to go anywhere can anyone else verify this? or am I missing something... Sure, here comes: I don't know what's the right behavior should be but, I've tested my setup: 1.24/1.3.12/5.005_03/rh6.2 and here is what I saw: Env.pm -- package Env; use strict; use Apache::Constants qw(:common); sub handler{ shift-send_http_header('text/plain'); print map {"$_ = $ENV{$_}\n"} keys %ENV; return OK; } 1; The following sets %ENV OFF Location /env SetHandler perl-script PerlHandler +Env PerlSetupEnv Off /Location The following doesn't set %ENV OFF Location /env SetHandler perl-script PerlHandler +Env PerlSetupEnv Off /Location I've tried the same with Apache::Registry, no matter where I put the PerlSetupEnv directive, the %ENV is ON all the time. I guess the enviroment is being enforced in Registry XS code, no matter what settings is. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://perl.org http://stason.org/TULARC http://singlesheaven.com http://perlmonth.com http://sourcegarden.org