1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
4 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
5 This file is generated from xml source: DO NOT EDIT
6 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
8 <title>mod_env - Apache HTTP Server</title>
9 <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
10 <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
11 <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
12 <link href="../images/favicon.ico" rel="shortcut icon" /></head>
14 <div id="page-header">
15 <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p>
16 <p class="apache">Apache HTTP Server Version 2.1</p>
17 <img alt="" src="../images/feather.gif" /></div>
18 <div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
20 <a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs-project/">Documentation</a> > <a href="../">Version 2.1</a> > <a href="./">Modules</a></div>
21 <div id="page-content">
22 <div id="preamble"><h1>Apache Module mod_env</h1>
24 <p><span>Available Languages: </span><a href="../en/mod/mod_env.html" title="English"> en </a> |
25 <a href="../ja/mod/mod_env.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
26 <a href="../ko/mod/mod_env.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
28 <table class="module"><tr><th><a href="module-dict.html#Description">Description:</a></th><td>Modifies the environment which is passed to CGI scripts and
30 <tr><th><a href="module-dict.html#Status">Status:</a></th><td>Base</td></tr>
31 <tr><th><a href="module-dict.html#ModuleIdentifier">Module Identifier:</a></th><td>env_module</td></tr>
32 <tr><th><a href="module-dict.html#SourceFile">Source File:</a></th><td>mod_env.c</td></tr></table>
35 <p>This module allows for control of the environment that will
36 be provided to CGI scripts and SSI pages. Environment variables
37 may be passed from the shell which invoked the httpd process.
38 Alternatively, environment variables may be set or unset within
39 the configuration process.</p>
41 <div id="quickview"><h3 class="directives">Directives</h3>
43 <li><img alt="" src="../images/down.gif" /> <a href="#passenv">PassEnv</a></li>
44 <li><img alt="" src="../images/down.gif" /> <a href="#setenv">SetEnv</a></li>
45 <li><img alt="" src="../images/down.gif" /> <a href="#unsetenv">UnsetEnv</a></li>
49 <li><a href="../env.html">Environment Variables</a></li>
52 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
53 <div class="directive-section"><h2><a name="PassEnv" id="PassEnv">PassEnv</a> <a name="passenv" id="passenv">Directive</a></h2>
54 <table class="directive">
55 <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Passes environment variables from the shell</td></tr>
56 <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>PassEnv <var>env-variable</var> [<var>env-variable</var>]
58 <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
59 <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>FileInfo</td></tr>
60 <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
61 <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_env</td></tr>
63 <p>Specifies one or more environment variables to pass to CGI
64 scripts and SSI pages from the environment of the shell which
65 invoked the httpd process.</p>
67 <div class="example"><h3>Example</h3><p><code>
68 PassEnv LD_LIBRARY_PATH
72 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
73 <div class="directive-section"><h2><a name="SetEnv" id="SetEnv">SetEnv</a> <a name="setenv" id="setenv">Directive</a></h2>
74 <table class="directive">
75 <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Sets environment variables</td></tr>
76 <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>SetEnv <var>env-variable</var> <var>value</var></code></td></tr>
77 <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
78 <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>FileInfo</td></tr>
79 <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
80 <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_env</td></tr>
82 <p>Sets an environment variable, which is then passed on to CGI
83 scripts and SSI pages.</p>
85 <div class="example"><h3>Example</h3><p><code>
86 SetEnv SPECIAL_PATH /foo/bin
90 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
91 <div class="directive-section"><h2><a name="UnsetEnv" id="UnsetEnv">UnsetEnv</a> <a name="unsetenv" id="unsetenv">Directive</a></h2>
92 <table class="directive">
93 <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Removes variables from the environment</td></tr>
94 <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>UnsetEnv <var>env-variable</var> [<var>env-variable</var>]
96 <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
97 <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>FileInfo</td></tr>
98 <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
99 <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_env</td></tr>
101 <p>Removes one or more environment variables from those passed
102 on to CGI scripts and SSI pages.</p>
104 <div class="example"><h3>Example</h3><p><code>
105 UnsetEnv LD_LIBRARY_PATH
110 <div class="bottomlang">
111 <p><span>Available Languages: </span><a href="../en/mod/mod_env.html" title="English"> en </a> |
112 <a href="../ja/mod/mod_env.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
113 <a href="../ko/mod/mod_env.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
114 </div><div id="footer">
115 <p class="apache">Copyright 1999-2004 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
116 <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div>