mod_env.html revision 136101ec81a29225c7ec74c96569dc96ec19e7e4
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering<HTML>
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering<HEAD>
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering<TITLE>Apache module mod_env</TITLE>
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering</HEAD>
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering<BODY
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering BGCOLOR="#FFFFFF"
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering TEXT="#000000"
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering LINK="#0000FF"
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering VLINK="#000080"
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering ALINK="#FF0000"
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering>
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering<!--#include virtual="header.html" -->
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering<H1 ALIGN="CENTER">Apache module mod_env</H1>
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart PoetteringThis module is contained in the <CODE>mod_env.c</CODE> file, and
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poetteringis compiled in by default. It provides for
a4a57bb6ce442a0c8317459b30bdc89dad207a5bPiotr Drągpassing environment variables to CGI/SSI scripts. Is is only available
70244d1d25eb80b57e160ea004d0e6bf793d4cafLennart Poetteringin Apache 1.1 and later.
70244d1d25eb80b57e160ea004d0e6bf793d4cafLennart Poettering
70244d1d25eb80b57e160ea004d0e6bf793d4cafLennart Poettering<H2>Summary</H2>
70244d1d25eb80b57e160ea004d0e6bf793d4cafLennart Poettering
70244d1d25eb80b57e160ea004d0e6bf793d4cafLennart PoetteringThis module allows Apache's CGI and SSI environment to inherit
70244d1d25eb80b57e160ea004d0e6bf793d4cafLennart Poetteringenvironment variables from the shell which invoked the httpd process.
70244d1d25eb80b57e160ea004d0e6bf793d4cafLennart PoetteringCERN web-servers are able to do this, so this module is especially
70244d1d25eb80b57e160ea004d0e6bf793d4cafLennart Poetteringuseful to web-admins who wish to migrate from CERN to Apache without
70244d1d25eb80b57e160ea004d0e6bf793d4cafLennart Poetteringrewriting all their scripts
70244d1d25eb80b57e160ea004d0e6bf793d4cafLennart Poettering
70244d1d25eb80b57e160ea004d0e6bf793d4cafLennart Poettering<H2>Directives</H2>
70244d1d25eb80b57e160ea004d0e6bf793d4cafLennart Poettering<UL>
70244d1d25eb80b57e160ea004d0e6bf793d4cafLennart Poettering<LI><A HREF="#passenv">PassEnv</A>
70244d1d25eb80b57e160ea004d0e6bf793d4cafLennart Poettering<LI><A HREF="#setenv">SetEnv</A>
70244d1d25eb80b57e160ea004d0e6bf793d4cafLennart Poettering<LI><A HREF="#unsetenv">UnsetEnv</A>
70244d1d25eb80b57e160ea004d0e6bf793d4cafLennart Poettering</UL>
70244d1d25eb80b57e160ea004d0e6bf793d4cafLennart Poettering
70244d1d25eb80b57e160ea004d0e6bf793d4cafLennart Poettering<HR>
70244d1d25eb80b57e160ea004d0e6bf793d4cafLennart Poettering
70244d1d25eb80b57e160ea004d0e6bf793d4cafLennart Poettering<H2><A NAME="passenv">PassEnv</A></H2>
70244d1d25eb80b57e160ea004d0e6bf793d4cafLennart Poettering<A
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering HREF="directive-dict.html#Syntax"
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering REL="Help"
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering><STRONG>Syntax:</STRONG></A> PassEnv <EM>variable variable ...</EM><BR>
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering<A
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering HREF="directive-dict.html#Context"
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering REL="Help"
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering><STRONG>Context:</STRONG></A> server config, virtual host<BR>
d04c1fb8e215600b4950c6778c6c16ddafc14024Lennart Poettering<A
HREF="directive-dict.html#Status"
REL="Help"
><STRONG>Status:</STRONG></A> Base<BR>
<A
HREF="directive-dict.html#Module"
REL="Help"
><STRONG>Module:</STRONG></A> mod_env<BR>
<A
HREF="directive-dict.html#Compatibility"
REL="Help"
><STRONG>Compatibility:</STRONG></A> PassEnv is only available in
Apache 1.1 and later.<P>
Specifies one or more environment variables to pass to CGI scripts
from the server's own environment. Example:
<PRE>
PassEnv LD_LIBRARY_PATH
</PRE>
<HR>
<H2><A NAME="setenv">SetEnv</A></H2>
<A
HREF="directive-dict.html#Syntax"
REL="Help"
><STRONG>Syntax:</STRONG></A> SetEnv <EM>variable value</EM><BR>
<A
HREF="directive-dict.html#Context"
REL="Help"
><STRONG>Context:</STRONG></A> server config, virtual host<BR>
<A
HREF="directive-dict.html#Status"
REL="Help"
><STRONG>Status:</STRONG></A> Base<BR>
<A
HREF="directive-dict.html#Module"
REL="Help"
><STRONG>Module:</STRONG></A> mod_env<BR>
<A
HREF="directive-dict.html#Compatibility"
REL="Help"
><STRONG>Compatibility:</STRONG></A> 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>
<HR>
<H2><A NAME="unsetenv">UnsetEnv</A></H2>
<A
HREF="directive-dict.html#Syntax"
REL="Help"
><STRONG>Syntax:</STRONG></A> UnsetEnv <EM>variable variable ...</EM><BR>
<A
HREF="directive-dict.html#Context"
REL="Help"
><STRONG>Context:</STRONG></A> server config, virtual host<BR>
<A
HREF="directive-dict.html#Status"
REL="Help"
><STRONG>Status:</STRONG></A> Base<BR>
<A
HREF="directive-dict.html#Module"
REL="Help"
><STRONG>Module:</STRONG></A> mod_env<BR>
<A
HREF="directive-dict.html#Compatibility"
REL="Help"
><STRONG>Compatibility:</STRONG></A> UnsetEnv is only available in
Apache 1.1 and later.<P>
Removes one or more environment variables from those passed on to
CGI scripts. Example:
<PRE>
UnsetEnv LD_LIBRARY_PATH
</PRE>
<P>
<!--#include virtual="footer.html" -->
</BODY>
</HTML>