Frank Wiles wrote:
On Sun, 30 Jan 2005 11:47:50 +0200
"Octavian Rasnita" <[EMAIL PROTECTED]> wrote:

  
Hi,

I have tried to put the following lines in httpd.conf:

SetEnv user "gigel"
SetEnv pass "parola"

Well, if I print the environment variables using a cgi script, they
are printed fine, but if I use MP, their values are not printed, and I
can see just a:

user=
pass=

Please tell me how can I do this to work fine with ModPerl also.
    

  Are you using MP1 or MP2?  If you're using MP2 in your configuration
  are you doing: 
 
  SetHandler perl-script 

  or 
  
  SetHandler modperl 

  If you're doing the second one %ENV is not populated and the easiest
  way to fix it is just to switch to using 'perl-script'.  
  
But if you don't want the %ENV overhead, you can keep "SetHandler modperl" and put in your httpd.conf:
PerlSetVar user "gigel"

and in your handler access it through:
$user=$r->dir_config->get('user');

--Stef

  If you're using MP1 then Geoffrey is right that this is probably a
  bug.

 ---------------------------------
   Frank Wiles <[EMAIL PROTECTED]>
   http://www.wiles.org
 ---------------------------------
  

Stefan Loones
http://www.maygill.com

Reply via email to