httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@ast.cam.ac.uk (David Robinson)
Subject Apache env. var. suggestion
Date Mon, 08 May 1995 16:17:00 GMT
>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 <3np3i2$jl3@vixen.cso.uiuc.edu>,
>Beth Frank <efrank@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.

Mime
View raw message