Apache 0.8.11 skip my variables...

Apache 0.8.11 skip my variables...

Post by Joakim Grebe » Sat, 02 Sep 1995 04:00:00



Why is this a problem:

Quote:> setenv FOO bar
> ./httpd -d /home/www/server_root

The daemon doesn't now about FOO even though it was set
before the startup?

Why?!

Anyone? - Thanks

/Joakim

 
 
 

Apache 0.8.11 skip my variables...

Post by Rob Hartil » Sat, 02 Sep 1995 04:00:00



>Why is this a problem:

>> setenv FOO bar
>> ./httpd -d /home/www/server_root

>The daemon doesn't now about FOO even though it was set
>before the startup?

>Why?!

Apache creates a list of environment variables that it gives to
the CGI. It *doesn't* add all existing env vars to this list, only
a subset are added, e.g. PATH.

A future Apache will probably allow env vars to be marked for export
to CGI scripts.

rob
--
http://nqcd.lanl.gov/~hartill/