mod_env.html revision 2eaf662cbc81e823e8d9aeb8d54e69e63032493e
2d453384452f29ab46f29c0163a830492f936512Till Mossakowski<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
c3d42e13d2a7c3749229498658aec34e7e4fd0a0Christian Maeder "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
97018cf5fa25b494adffd7e9b4e87320dae6bf47Christian Maeder <meta name="generator" content="HTML Tidy, see www.w3.org" />
c673000621dd506e5fc7babf8ca6303b7fcefc14Christian Maeder <!-- Background white, links blue (unvisited), navy (visited), red (active) -->
f3a94a197960e548ecd6520bb768cb0d547457bbChristian Maeder <body bgcolor="#FFFFFF" text="#000000" link="#0000FF"
2d453384452f29ab46f29c0163a830492f936512Till Mossakowski <!--#include virtual="header.html" -->
613bf0ed7d98a961755408ead328687ec17f74fdChristian Maeder <h1 align="CENTER">Apache module mod_env</h1>
b6a54d7292d7a3713000847334de4316d105f40fChristian Maeder <p>This module provides for modifying the environment which is
036037a4510ea63a81a4829ad0c11ef39b2391b0Christian Maeder passed to CGI scripts and SSI pages.</p>
2f65d931e866162d39d09c43021a55314040b377Christian Maeder rel="Help"><strong>Status:</strong></a> Base<br />
e562f4e0579bf7dd11f2b77f24ef94cd0dd78319Christian Maeder rel="Help"><strong>Source File:</strong></a> mod_env.c<br />
036037a4510ea63a81a4829ad0c11ef39b2391b0Christian Maeder rel="Help"><strong>Module Identifier:</strong></a>
ad270004874ce1d0697fb30d7309f180553bb315Christian Maeder env_module<br />
47d6bc7bc9a708427f96be8d805f712697ad3d9eChristian Maeder rel="Help"><strong>Compatibility:</strong></a> Available in
a3acfb955e4427cde9094615b8a62623a441f8c7Christian Maeder Apache 1.1 and later.</p>
807d5fddaa5dd8924321c73400fcf875a9ed9a9cChristian Maeder <p>This module allows for control of the environment that will
c4ba3e20a432419afff01558e425e00be42871d8Christian Maeder be provided to CGI scripts and SSI pages. Environment variables
b6a54d7292d7a3713000847334de4316d105f40fChristian Maeder may be passed from the shell which invoked the httpd process.
b6a54d7292d7a3713000847334de4316d105f40fChristian Maeder Alternatively, environment variables may be set or unset within
62b04256f84128edd94c0575757332f84450bd69Christian Maeder the configuration process.</p>
99c923311eab71a85f1dcc4785d349609c828da4Christian Maeder <p>For additional information, we provide a document on <a
e42eddbc69dd31f7cd696e38f82acad678831cb7Jian Chun Wang href="/env.html">Environment Variables in Apache</a>.</p>
b6a54d7292d7a3713000847334de4316d105f40fChristian Maeder <h2><a id="passenv" name="passenv">PassEnv</a> directive</h2>
b6a54d7292d7a3713000847334de4316d105f40fChristian Maeder rel="Help"><strong>Syntax:</strong></a> PassEnv
ca3a4317b88adee116c04c6b08458b5690d83209Christian Maeder <em>env-variable</em> [<em>env-variable</em>] ...<br />
e42eddbc69dd31f7cd696e38f82acad678831cb7Jian Chun Wang rel="Help"><strong>Context:</strong></a> server config, virtual
e42eddbc69dd31f7cd696e38f82acad678831cb7Jian Chun Wang rel="Help"><strong>Status:</strong></a> Base<br />
cbac0a99fd23a43b4e94d30e58ebf93a6af6caa0Christian Maeder rel="Help"><strong>Module:</strong></a> mod_env<br />
135bcb7f65991146c103e5e7599adbc49fe7359dChristian Maeder <a href="directive-dict.html#Compatibility"
c3d42e13d2a7c3749229498658aec34e7e4fd0a0Christian Maeder rel="Help"><strong>Compatibility:</strong></a> PassEnv is only
c3d42e13d2a7c3749229498658aec34e7e4fd0a0Christian Maeder available in Apache 1.1 and later.
cbac0a99fd23a43b4e94d30e58ebf93a6af6caa0Christian Maeder <p>Specifies one or more environment variables to pass to CGI
c4ba3e20a432419afff01558e425e00be42871d8Christian Maeder scripts and SSI pages from the environment of the shell which
135bcb7f65991146c103e5e7599adbc49fe7359dChristian Maeder invoked the httpd process. Example:</p>
b6a54d7292d7a3713000847334de4316d105f40fChristian Maeder PassEnv LD_LIBRARY_PATH
b6a54d7292d7a3713000847334de4316d105f40fChristian Maeder <h2><a id="setenv" name="setenv">SetEnv</a> directive</h2>
b6a54d7292d7a3713000847334de4316d105f40fChristian Maeder rel="Help"><strong>Syntax:</strong></a> SetEnv <em>env-variable
b6a54d7292d7a3713000847334de4316d105f40fChristian Maeder rel="Help"><strong>Context:</strong></a> server config, virtual
b6a54d7292d7a3713000847334de4316d105f40fChristian Maeder rel="Help"><strong>Status:</strong></a> Base<br />
b6a54d7292d7a3713000847334de4316d105f40fChristian Maeder rel="Help"><strong>Module:</strong></a> mod_env<br />
b6a54d7292d7a3713000847334de4316d105f40fChristian Maeder <a href="directive-dict.html#Compatibility"
b6a54d7292d7a3713000847334de4316d105f40fChristian Maeder rel="Help"><strong>Compatibility:</strong></a> SetEnv is only
b6a54d7292d7a3713000847334de4316d105f40fChristian Maeder available in Apache 1.1 and later.
b6a54d7292d7a3713000847334de4316d105f40fChristian Maeder <p>Sets an environment variable, which is then passed on to CGI
b6a54d7292d7a3713000847334de4316d105f40fChristian Maeder scripts and SSI pages. Example:</p>
7f6b97541fdee30d62a0a3cfa58173212a6cd002Christian Maeder <h2><a id="unsetenv" name="unsetenv">UnsetEnv</a>
7f6b97541fdee30d62a0a3cfa58173212a6cd002Christian Maeder directive</h2>
62dd3cd58cda003c32ac69ff12dc82b0a6f5d9d3Christian Maeder rel="Help"><strong>Syntax:</strong></a> UnsetEnv
62dd3cd58cda003c32ac69ff12dc82b0a6f5d9d3Christian Maeder <em>env-variable</em> [<em>env-variable</em>] ...<br />
62dd3cd58cda003c32ac69ff12dc82b0a6f5d9d3Christian Maeder rel="Help"><strong>Context:</strong></a> server config, virtual
e42eddbc69dd31f7cd696e38f82acad678831cb7Jian Chun Wang rel="Help"><strong>Status:</strong></a> Base<br />
89c8609b3606fdb621eb8f987b88dc3813b5bbd5Christian Maeder rel="Help"><strong>Module:</strong></a> mod_env<br />
bb027d3cacbd83dfec98beb38001f105e4918557Christian Maeder rel="Help"><strong>Compatibility:</strong></a> UnsetEnv is only
bb027d3cacbd83dfec98beb38001f105e4918557Christian Maeder available in Apache 1.1 and later.
99c923311eab71a85f1dcc4785d349609c828da4Christian Maeder <p>Removes one or more environment variables from those passed
99c923311eab71a85f1dcc4785d349609c828da4Christian Maeder on to CGI scripts and SSI pages. Example:</p>
613bf0ed7d98a961755408ead328687ec17f74fdChristian Maeder UnsetEnv LD_LIBRARY_PATH
613bf0ed7d98a961755408ead328687ec17f74fdChristian Maeder <!--#include virtual="footer.html" -->