]> granicus.if.org Git - apache/blob - docs/manual/mod/mod_env.xml
Fix alignment in a <highlight> block.
[apache] / docs / manual / mod / mod_env.xml
1 <?xml version="1.0"?>
2 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
3 <?xml-stylesheet type="text/xsl" href="../style/manual.en.xsl"?>
4 <!-- $LastChangedRevision$ -->
5
6 <!--
7  Licensed to the Apache Software Foundation (ASF) under one or more
8  contributor license agreements.  See the NOTICE file distributed with
9  this work for additional information regarding copyright ownership.
10  The ASF licenses this file to You under the Apache License, Version 2.0
11  (the "License"); you may not use this file except in compliance with
12  the License.  You may obtain a copy of the License at
13
14      http://www.apache.org/licenses/LICENSE-2.0
15
16  Unless required by applicable law or agreed to in writing, software
17  distributed under the License is distributed on an "AS IS" BASIS,
18  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  See the License for the specific language governing permissions and
20  limitations under the License.
21 -->
22
23 <modulesynopsis metafile="mod_env.xml.meta">
24
25 <name>mod_env</name>
26 <description>Modifies the environment which is passed to CGI scripts and
27 SSI pages</description>
28 <status>Base</status>
29 <sourcefile>mod_env.c</sourcefile>
30 <identifier>env_module</identifier>
31 <summary>
32     <p>This module allows for control of internal environment variables that
33     are used by various Apache HTTP Server modules. These variables are also
34     provided to CGI scripts as native system environment variables, and available
35     for use in SSI pages. Environment variables may be passed from the shell
36     which invoked the <program>httpd</program> process. Alternatively,
37     environment variables may be set or unset within the configuration process.</p>
38 </summary>
39 <seealso><a href="../env.html">Environment Variables</a></seealso>
40 <seealso><directive module="mod_setenvif">SetEnvIf</directive></seealso>
41
42 <directivesynopsis>
43 <name>PassEnv</name>
44 <description>Passes environment variables from the shell</description>
45 <syntax>PassEnv <var>env-variable</var> [<var>env-variable</var>]
46 ...</syntax>
47 <contextlist><context>server config</context><context>virtual host</context>
48 <context>directory</context><context>.htaccess</context></contextlist>
49 <override>FileInfo</override>
50
51 <usage>
52     <p>Specifies one or more native system environment variables to make available
53     as internal environment variables, which are available to Apache HTTP Server modules
54     as well as propagated to CGI scripts and SSI pages. Values come from the
55     native OS environment of the shell which invoked the
56     <program>httpd</program> process.</p>
57
58     <example><title>Example</title>
59     <highlight language="config">
60       PassEnv LD_LIBRARY_PATH
61       </highlight>
62     </example>
63 </usage>
64 </directivesynopsis>
65
66 <directivesynopsis>
67 <name>SetEnv</name>
68 <description>Sets environment variables</description>
69 <syntax>SetEnv <var>env-variable</var> [<var>value</var>]</syntax>
70 <contextlist><context>server config</context><context>virtual host</context>
71 <context>directory</context><context>.htaccess</context></contextlist>
72 <override>FileInfo</override>
73
74 <usage>
75     <p>Sets an internal environment variable, which is then available to Apache
76     HTTP Server modules, and passed on to CGI scripts and SSI pages.</p>
77
78     <example><title>Example</title>
79     <highlight language="config">
80       SetEnv SPECIAL_PATH /foo/bin
81       </highlight>
82     </example>
83
84     <p> If you omit the <var>value</var> argument, the variable is set to
85     an empty string.</p>
86
87     <note><p>The internal environment variables set by this directive are set
88     <em>after</em> most early request processing directives are run, such as access
89     control and URI-to-filename mapping.  If the environment variable you're
90     setting is meant as input into this early phase of processing such as the
91     <directive module="mod_rewrite">RewriteRule</directive> directive, you should
92     instead set the environment variable with
93     <directive module="mod_setenvif">SetEnvIf</directive>.</p>
94     </note>
95
96 </usage>
97 <seealso><a href="../env.html">Environment Variables</a></seealso>
98 </directivesynopsis>
99
100 <directivesynopsis>
101 <name>UnsetEnv</name>
102 <description>Removes variables from the environment</description>
103 <syntax>UnsetEnv <var>env-variable</var> [<var>env-variable</var>]
104 ...</syntax>
105 <contextlist><context>server config</context><context>virtual host</context>
106 <context>directory</context><context>.htaccess</context></contextlist>
107 <override>FileInfo</override>
108
109 <usage>
110     <p>Removes one or more internal environment variables from those passed
111     on to CGI scripts and SSI pages.</p>
112
113     <example><title>Example</title>
114     <highlight language="config">
115       UnsetEnv LD_LIBRARY_PATH
116       </highlight>
117     </example>
118 </usage>
119 </directivesynopsis>
120
121 </modulesynopsis>