[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Apache question



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...