You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by David Robinson <dr...@ast.cam.ac.uk> on 1995/05/08 18:17:00 UTC

Apache env. var. suggestion

>From: stevesk@mayfield.hp.com (Kevin Steves)
>Newsgroups: comp.infosystems.www.providers
>Subject: Re: NCSA httpd & Environment Variables
>Date: 28 Apr 1995 17:52:16 GMT
>
>In article <3n...@vixen.cso.uiuc.edu>,
>Beth Frank <ef...@void.ncsa.uiuc.edu> wrote:
>>A post (which has now expired) asked for infomation about
>>how to send additional environment variables to a CGI script.
>
>A related question: why doesn't NCSA httpd copy TZ into the CGI's
>environment (it just copies PATH)?

I have also heard of suggestions to allow the setting of environment
variables in the config files.

My suggestion is to combine these to features into a new directive for
httpd.conf;
ImportEnv <variable-name>

which would allow named variables in the httpd environment to be passed
to CGI scripts. e.g.
ImportEnv TZ
ImportEnv X_SCRIPT_ROOT

 David.