[ale] Apache question
Paul Cartwright
paul_tbot at pcartwright.com
Tue Oct 24 11:28:56 EDT 2006
On Tue October 24 2006 11:18 am, Jim wrote:
> I'm running Apache2 on Linux. ?I have a compiled C program running
> as a cgi script and need to change its behavior via setting an
> environment variable. ?How does one do that? ?Would you put it in
> the
> /etc/init.d/apache2 file? ?Would the cgi script even inherit that
> enviroment?
I did a google search for:
+apache +cgi +"environment variable"
and got a bunch, this included:
http://httpd.apache.org/docs/1.3/env.html
The Apache HTTP Server provides a mechanism for storing information in
named variables that are called environment variables. This
information can be used to control various operations such as logging
or access control. The variables are also used as a mechanism to
communicate with external programs such as CGI scripts. This document
discusses different ways to manipulate and use these variables.
Although these variables are referred to as environment variables, they
are not the same as the environment variables controlled by the
underlying operating system. Instead, these variables are stored and
manipulated in an internal Apache structure. They only become actual
operating system environment variables when they are provided to CGI
scripts and Server Side Include scripts. If you wish to manipulate the
operating system environment under which the server itself runs, you
must use the standard environment manipulation mechanisms provided by
your operating system shell.
* Setting Environment Variables
* Using Environment Variables
* Special Purpose Environment Variables
* Examples
--
Paul Cartwright
Registered Linux user # 367800
X-Request-PGP: http://home.bellsouth.net/p/PWP-pcartwright/key.asc
More information about the Ale
mailing list