mirror of
https://github.com/apache/httpd.git
synced 2025-08-26 05:42:34 +03:00
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@76995 13f79535-47bb-0310-9956-ffa450edef68
69 lines
1.8 KiB
HTML
69 lines
1.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>Apache module mod_env</TITLE>
|
|
</HEAD>
|
|
|
|
<BODY>
|
|
<IMG SRC="../images/apache_sub.gif" ALT="">
|
|
<H1>Apache module mod_env</h1>
|
|
|
|
This module is contained in the <code>mod_env.c</code> file, and
|
|
is not compiled in by default. It provides for
|
|
passing environment variables to CGI/SSI scripts. Is is only available
|
|
in Apache 1.1 and later.
|
|
|
|
<h2>Summary</h2>
|
|
|
|
This module allows Apache's CGI and SSI environment to inherit
|
|
environment variables from the shell which invoked the httpd process.
|
|
CERN webservers are able to do this, so this module is especially
|
|
useful to webadmins who wish to migrate from CERN to Apache without
|
|
rewriting all their scripts
|
|
|
|
<h2>Directives</h2>
|
|
<ul>
|
|
<li><A HREF="#passenv">PassEnv</A>
|
|
<li><A HREF="#setenv">SetEnv</A>
|
|
</ul>
|
|
|
|
<hr>
|
|
|
|
<A name="passenv"><h2>PassEnv</h2></A>
|
|
<strong>Syntax:</strong> PassEnv <em>variable</em><br>
|
|
<strong>Context:</strong> server config, virtual host<br>
|
|
<strong>Status:</strong> Base<br>
|
|
<strong>Module:</strong> mod_env<br>
|
|
<strong>Compatibility:</strong> PassEnv is only available in
|
|
Apache 1.1 and later.<p>
|
|
|
|
Passes an environment variable to CGI scripts from the servers's own
|
|
environment. Example:
|
|
<pre>
|
|
PassEnv LD_LIBRARY_PATH
|
|
</pre>
|
|
|
|
|
|
<A name="setenv"><h2>SetEnv</h2></A>
|
|
<strong>Syntax:</strong> SetEnv <em>variable value</em><br>
|
|
<strong>Context:</strong> server config, virtual host<br>
|
|
<strong>Status:</strong> Base<br>
|
|
<strong>Module:</strong> mod_env<br>
|
|
<strong>Compatibility:</strong> SetEnv is only available in
|
|
Apache 1.1 and later.<p>
|
|
|
|
Sets an environment variable, which is then passed on to CGI
|
|
scripts. Example:
|
|
<pre>
|
|
SetEnv SPECIAL_PATH /foo/bin
|
|
</pre>
|
|
|
|
<p><hr>
|
|
|
|
<A HREF="../"><IMG SRC="../images/apache_home.gif" ALT="Home"></A>
|
|
<A HREF="./"><IMG SRC="../images/apache_index.gif" ALT="Index"></A>
|
|
|
|
</BODY>
|
|
</HTML>
|
|
|