[ale] Apache question

Brian D. Pitts bpitts at LearnLink.Emory.Edu
Tue Oct 24 11:35:33 EDT 2006


Atlanta Linux Enthusiasts <ale at ale.org> writes:
>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?

Use the SetEnv directive.

>  Would you put it in the 
>/etc/init.d/apache2 file?  Would the cgi script even inherit that 
>enviroment?

If you use the PassEnv directive.

See http://httpd.apache.org/docs/2.0/mod/mod_env.html and
http://httpd.apache.org/docs/2.0/env.html

-Brian

-------------- next part --------------
An HTML attachment was scrubbed...




More information about the Ale mailing list