|
|
Choosing A Webhost: |
SetEnv / PerlSetEnv issue: msg#00464apache.mod-perl
Hi List, I am running Apache with some perl scripts and currently I am passing configuration variables using SetEnv, for example: SetEnv FOO BAR In the code: my $foo_config = $ENV{FOO}; The problem is that I need to share these configuration variables with mod_perl handlers. However in mod_perl handlers $ENV{FOO} is undef despite the SetEnv directive. So of course I tried PerlSetEnv so that I can use the dir_config() method of the Apache object. But then $ENV{FOO} doesn't work in the CGI script. Everything works ok if I do: SetEnv FOO BAR PerlSetEnv FOO BAR But I would like to avoid duplicating config values for obvious maintenability issues... Can anyone think of a way to doing a "super SetEnv" directive that would set FOO in both %ENV (for CGI scripts) and in $r->dir_config() ? Thanks for your help, -- Building a better web - http://www.mkdoc.com/ --------------------------------------------- Jean-Michel Hiver jhiver@xxxxxxxxx - +44 (0)114 255 8097 Homepage: http://www.webmatrix.net/
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Apache::GD::Thumbnail Question, Issac Goldstand |
|---|---|
| Next by Date: | Re: SetEnv / PerlSetEnv issue, Jean-Michel Hiver |
| Previous by Thread: | Apache::GD::Thumbnail Question, Steven A. Adams |
| Next by Thread: | Re: SetEnv / PerlSetEnv issue, Jean-Michel Hiver |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |