mod_env.html revision e3d0ad4177632a17c3f1fa733a9623abf54cd289
693N/A<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
693N/A<HTML>
693N/A<HEAD>
693N/A<TITLE>Apache module mod_env</TITLE>
693N/A</HEAD>
693N/A
693N/A<BODY>
693N/A<!--#include virtual="header.html" -->
693N/A<H1>Apache module mod_env</h1>
693N/A
693N/AThis module is contained in the <code>mod_env.c</code> file, and
693N/Ais not compiled in by default. It provides for
693N/Apassing environment variables to CGI/SSI scripts. Is is only available
693N/Ain Apache 1.1 and later.
693N/A
693N/A<h2>Summary</h2>
693N/A
693N/AThis module allows Apache's CGI and SSI environment to inherit
693N/Aenvironment variables from the shell which invoked the httpd process.
693N/ACERN webservers are able to do this, so this module is especially
693N/Auseful to webadmins who wish to migrate from CERN to Apache without
693N/Arewriting all their scripts
693N/A
693N/A<h2>Directives</h2>
693N/A<ul>
693N/A<li><A HREF="#passenv">PassEnv</A>
693N/A<li><A HREF="#setenv">SetEnv</A>
693N/A</ul>
693N/A
693N/A<hr>
693N/A
693N/A<A name="passenv"><h2>PassEnv</h2></A>
693N/A<strong>Syntax:</strong> PassEnv <em>variable</em><br>
693N/A<strong>Context:</strong> server config, virtual host<br>
693N/A<strong>Status:</strong> Base<br>
693N/A<strong>Module:</strong> mod_env<br>
693N/A<strong>Compatibility:</strong> PassEnv is only available in
693N/AApache 1.1 and later.<p>
693N/A
693N/APasses an environment variable to CGI scripts from the servers's own
693N/Aenvironment. Example:
693N/A<pre>
693N/A PassEnv LD_LIBRARY_PATH
693N/A</pre>
693N/A
693N/A
693N/A<A name="setenv"><h2>SetEnv</h2></A>
693N/A<strong>Syntax:</strong> SetEnv <em>variable value</em><br>
693N/A<strong>Context:</strong> server config, virtual host<br>
693N/A<strong>Status:</strong> Base<br>
693N/A<strong>Module:</strong> mod_env<br>
693N/A<strong>Compatibility:</strong> SetEnv is only available in
693N/AApache 1.1 and later.<p>
693N/A
693N/ASets an environment variable, which is then passed on to CGI
693N/Ascripts. Example:
693N/A<pre>
693N/A SetEnv SPECIAL_PATH /foo/bin
693N/A</pre>
<p>
<!--#include virtual="footer.html" -->
</BODY>
</HTML>