mod_env.html revision 44afbb2bc1622ddf021058e2a157cfd31fb67fd0
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere<HTML>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere<HEAD>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere<TITLE>Apache module mod_env</TITLE>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere</HEAD>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere<BODY>
3c13a815670b54d1c17bf02954f7d2b066cde95cnd<!--#include virtual="header.html" -->
3c13a815670b54d1c17bf02954f7d2b066cde95cnd<H1>Apache module mod_env</h1>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere
931ea9439b37055d01a03dde53b3c5a8953884d2jfclereThis module is contained in the <code>mod_env.c</code> file, and
931ea9439b37055d01a03dde53b3c5a8953884d2jfclereis not compiled in by default. It provides for
931ea9439b37055d01a03dde53b3c5a8953884d2jfclerepassing environment variables to CGI/SSI scripts. Is is only available
931ea9439b37055d01a03dde53b3c5a8953884d2jfclerein Apache 1.1 and later.
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere
3f08db06526d6901aa08c110b5bc7dde6bc39905nd<h2>Summary</h2>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere
931ea9439b37055d01a03dde53b3c5a8953884d2jfclereThis module allows Apache's CGI and SSI environment to inherit
931ea9439b37055d01a03dde53b3c5a8953884d2jfclereenvironment variables from the shell which invoked the httpd process.
3f08db06526d6901aa08c110b5bc7dde6bc39905ndCERN web-servers are able to do this, so this module is especially
3c13a815670b54d1c17bf02954f7d2b066cde95cnduseful to web-admins who wish to migrate from CERN to Apache without
931ea9439b37055d01a03dde53b3c5a8953884d2jfclererewriting all their scripts
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere<h2>Directives</h2>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere<ul>
bf7fcf0c216a914407c0877aa37894fd9aecc219nilgun<li><A HREF="#passenv">PassEnv</A>
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung<li><A HREF="#setenv">SetEnv</A>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere</ul>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere<hr>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere<A name="passenv"><h2>PassEnv</h2></A>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere<strong>Syntax:</strong> PassEnv <em>variable</em><br>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere<strong>Context:</strong> server config, virtual host<br>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere<strong>Status:</strong> Base<br>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere<strong>Module:</strong> mod_env<br>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere<strong>Compatibility:</strong> PassEnv is only available in
931ea9439b37055d01a03dde53b3c5a8953884d2jfclereApache 1.1 and later.<p>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere
931ea9439b37055d01a03dde53b3c5a8953884d2jfclerePasses an environment variable to CGI scripts from the server's own
931ea9439b37055d01a03dde53b3c5a8953884d2jfclereenvironment. Example:
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere<pre>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere PassEnv LD_LIBRARY_PATH
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere</pre>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere<A name="setenv"><h2>SetEnv</h2></A>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere<strong>Syntax:</strong> SetEnv <em>variable value</em><br>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere<strong>Context:</strong> server config, virtual host<br>
794d304bffa1e45a2c2125a31ba65a4c5e5346f0noodl<strong>Status:</strong> Base<br>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere<strong>Module:</strong> mod_env<br>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere<strong>Compatibility:</strong> SetEnv is only available in
931ea9439b37055d01a03dde53b3c5a8953884d2jfclereApache 1.1 and later.<p>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere
931ea9439b37055d01a03dde53b3c5a8953884d2jfclereSets an environment variable, which is then passed on to CGI
931ea9439b37055d01a03dde53b3c5a8953884d2jfclerescripts. Example:
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere<pre>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere SetEnv SPECIAL_PATH /foo/bin
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere</pre>
78f97ce162b66a0dbfd7af4dcd9984f162569b04minfrin
2d39a41e98476f5235b7c37ce745a4aa0904b1cbrbowen<p>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere<!--#include virtual="footer.html" -->
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere</BODY>
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere</HTML>
78f97ce162b66a0dbfd7af4dcd9984f162569b04minfrin
931ea9439b37055d01a03dde53b3c5a8953884d2jfclere