I am trying to setup a <Perl> section in my httpd.conf file that will retrieve the web server's environment variables. I've tried several methods and all lead me back to the same problem.
I first tried using PerlPassEnv but could never get any environment variables from it. I also understand there is a great deal more overhead using this method.
I then tried using $r->subprocess_env but always received an error regarding Can't call method "subprocess_env"on an undefined value. I believe this routine is a part of the Apache module. I verified that it was in the perl lib path and then attempted to "use" it in the <Perl> section.
I finally tried using $r->parsed_uri but, again, continue to receive an error regarding Can't call method "parsed_uri" on an undefined value. The routine is part of the Apache::URI module, which I verified was in the path and then attempted to "use" in the <Perl> section.
I am having a heck of a time trying to get the web server environment variables via the <Perl> section. I could really use some assistance trying to hammer this out.
I was able to get routines from the CGI module to work in the <Perl> section within my httpd.conf file.
I would appreciate it if someone could confirm that it is possible to read environment variables within a <Perl> section with sample code.
Thank you for your assistance.
Respectfully,
Gary
-- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html