You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Tyler Bird <bi...@epromo.com> on 2007/05/22 20:47:14 UTC

changing apaches environment from a mod_perl script

Hi,

Hey I was wondering how I could do essentially the reverse of PerlSetEnv

instead of setting an environment variable for a virtual host inside a 
virtual host definition

<VirtualHost>

PerlSetEnv

</VirtualHost>

I want to set it inside of index.i
-- clip ---

my $request = shift;

$request->set_env("HOME", "/home/bird");

So basically I want to alter apache's environment variables from my script.

Any ideas?