Re: "SetEnv/SetEnvIf" and mod_perl

2015-10-02 Thread Paul Silevitch
subprocess_env method will let you get apache's env: http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_subprocess_env_ On Fri, Oct 2, 2015 at 6:24 PM, Michael A. Capone < mcap...@cablewholesale.com> wrote: > In my code, I do: > > > SetEnvIf Request_URI \.gif$ gif-image > Set

Re: "SetEnv/SetEnvIf" and mod_perl

2015-10-02 Thread Michael A. Capone
In my code, I do: SetEnvIf Request_URI \.gif$ gif-image SetHandler modperl PerlResponseHandler MyNiftyModule PerlOptions +SetupEnv And then, yes, I have access to $ENV{'gif-image'}, with a value of "1". Alternatively, i can SetEnvIf Request_URI \.gif$ gif-image=YES ... and

"SetEnv/SetEnvIf" and mod_perl

2015-10-02 Thread André Warnier
Hi again. Assuming this kind of configuration : SetEnvIf Request_URI \.gif$ gif-image SetHandler modperl PerlResponseHandler MyNiftyModule .. is there any way, in MyNiftyModule, to "get at" this "gif-image" variable ? Such as, would I find it as $ENV{'gif-image'} ? What kind of t