mod_setenvif.html revision 2fbcb47faf267c01a8254429378b444b51d9207b
54b5e4bca82975ecb0d9591308733f4ee257ccbbChristian Maeder<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
54b5e4bca82975ecb0d9591308733f4ee257ccbbChristian Maeder<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
54b5e4bca82975ecb0d9591308733f4ee257ccbbChristian Maeder BGCOLOR="#FFFFFF"
54b5e4bca82975ecb0d9591308733f4ee257ccbbChristian Maeder TEXT="#000000"
54b5e4bca82975ecb0d9591308733f4ee257ccbbChristian Maeder LINK="#0000FF"
54b5e4bca82975ecb0d9591308733f4ee257ccbbChristian Maeder VLINK="#000080"
54b5e4bca82975ecb0d9591308733f4ee257ccbbChristian Maeder ALINK="#FF0000"
ce3570dd4d10d200bf1a66323755bb3f4cb0d70cChristian Maeder<!--#include virtual="header.html" -->
54b5e4bca82975ecb0d9591308733f4ee257ccbbChristian Maeder <H1 ALIGN="CENTER">Module mod_setenvif</H1>
54b5e4bca82975ecb0d9591308733f4ee257ccbbChristian Maeder This module provides the ability to set environment variables based
b959b3ff2f129f3d88ad43c23bad0e78d05739d1Christian Maeder upon attributes of the request.
b959b3ff2f129f3d88ad43c23bad0e78d05739d1Christian MaederHREF="module-dict.html#SourceFile"
b959b3ff2f129f3d88ad43c23bad0e78d05739d1Christian Maeder><STRONG>Source File:</STRONG></A> mod_setenvif.c
275f2a1080c2089e14a1455dbbbb3bc992d8e593cmaederHREF="module-dict.html#ModuleIdentifier"
275f2a1080c2089e14a1455dbbbb3bc992d8e593cmaeder><STRONG>Module Identifier:</STRONG></A> setenvif_module
b959b3ff2f129f3d88ad43c23bad0e78d05739d1Christian MaederHREF="module-dict.html#Compatibility"
be48b0a668c4129700eb2778271ef25c95b6d97bChristian Maeder><STRONG>Compatibility:</STRONG></A> Available in Apache 1.3 and later.
b959b3ff2f129f3d88ad43c23bad0e78d05739d1Christian Maeder The <SAMP>mod_setenvif</SAMP> module allows you to set environment
b959b3ff2f129f3d88ad43c23bad0e78d05739d1Christian Maeder variables according to whether different aspects of the request
b959b3ff2f129f3d88ad43c23bad0e78d05739d1Christian Maeder match regular expressions you specify. These environment variables
b959b3ff2f129f3d88ad43c23bad0e78d05739d1Christian Maeder can be used by other parts of the server to make decisions about
b959b3ff2f129f3d88ad43c23bad0e78d05739d1Christian Maeder actions to be taken.
b959b3ff2f129f3d88ad43c23bad0e78d05739d1Christian Maeder <P>The directives are considered in the order they appear in the
b959b3ff2f129f3d88ad43c23bad0e78d05739d1Christian Maeder configuration files. So more complex sequences can be used, such
b959b3ff2f129f3d88ad43c23bad0e78d05739d1Christian Maeder as this example, which sets <CODE>netscape</CODE> if the browser
be48b0a668c4129700eb2778271ef25c95b6d97bChristian Maeder is mozilla but not MSIE.
b959b3ff2f129f3d88ad43c23bad0e78d05739d1Christian Maeder BrowserMatch ^Mozilla netscape
b959b3ff2f129f3d88ad43c23bad0e78d05739d1Christian Maeder BrowserMatch MSIE !netscape
b959b3ff2f129f3d88ad43c23bad0e78d05739d1Christian Maeder <p>For additional information, we provide a document on
b959b3ff2f129f3d88ad43c23bad0e78d05739d1Christian Maeder <a href="/env.html">Environment Variables in Apache</a>.</p>
b959b3ff2f129f3d88ad43c23bad0e78d05739d1Christian Maeder <LI><A HREF="#BrowserMatch">BrowserMatch</A>
HREF="directive-dict.html#Syntax"
HREF="directive-dict.html#Default"
HREF="directive-dict.html#Context"
HREF="directive-dict.html#Override"
HREF="directive-dict.html#Status"
HREF="directive-dict.html#Module"
HREF="directive-dict.html#Compatibility"
HREF="directive-dict.html#Syntax"
HREF="directive-dict.html#Default"
HREF="directive-dict.html#Context"
HREF="directive-dict.html#Override"
HREF="directive-dict.html#Status"
HREF="directive-dict.html#Module"
HREF="directive-dict.html#Compatibility"
HREF="directive-dict.html#Syntax"
HREF="directive-dict.html#Default"
HREF="directive-dict.html#Context"
HREF="directive-dict.html#Override"
HREF="directive-dict.html#Status"
HREF="directive-dict.html#Module"
HREF="directive-dict.html#Compatibility"
HREF="directive-dict.html#Syntax"
HREF="directive-dict.html#Default"
HREF="directive-dict.html#Context"
HREF="directive-dict.html#Override"
HREF="directive-dict.html#Status"
HREF="directive-dict.html#Module"
HREF="directive-dict.html#Compatibility"
<!--#include virtual="footer.html" -->