Apache HTTP Server Version 2.2
Description: | Allows the setting of environment variables based on characteristics of the request |
---|---|
Status: | Base |
Module Identifier: | setenvif_module |
Source File: | mod_setenvif.c |
The mod_setenvif
module allows you to set
internal environment variables according to whether different aspects of
the request match regular expressions you specify. These
environment variables can be used by other parts of the server
to make decisions about actions to be taken, as well as becoming
available to CGI scripts and SSI pages.
The directives are considered in the order they appear in
the configuration files. So more complex sequences can be used,
such as this example, which sets netscape
if the
browser is mozilla but not MSIE.
BrowserMatch ^Mozilla netscape
BrowserMatch MSIE !netscape
Description: | Sets environment variables conditional on HTTP User-Agent |
---|---|
Syntax: | BrowserMatch regex |