Apache HTTP Server Version 1.3Module mod_browserThis module is contained in themod_browser.c file, and
is compiled in by default. It provides for setting environment
variables based on the browser. This module is part of Apache 1.2.*
only. From Apache 1.3 onwards mod_setenvif provides the functionality
of this module.
SummaryThis module allows you to set environment variables based on the name of the browser accessing your document, based on theUser-Agent
header field. This is especially useful when combined with a conditional
HTML language such as XSSI or PHP, and
can provide for simple browser-based negotiation of HTML features.
DirectivesBrowserMatchSyntax: BrowserMatch regex attr1 attr2...Context: server config Status: base Module: mod_browser Compatibility: Apache 1.2 and above
The BrowserMatch directive defines environment variables based on the
User-Agent
header. The first argument should be a POSIX.2 extended regular
expression (similar to an egrep-style regex). The rest of the arguments
give names of variables to set. These take the form of either
" For example:
BrowserMatch ^Mozilla forms jpeg=yes browser=netscape
BrowserMatch "^Mozilla/[2-3]" tables agif frames javascript
BrowserMatch MSIE !javascript
BrowserMatchNoCaseSyntax: BrowserMatchNoCase regex attr1 attr2...Context: server config Status: base Module: mod_browser Compatibility: Apache 1.2 and above The
BrowserMatchNoCase mac platform=macintosh
BrowserMatchNoCase win platform=windows
Apache HTTP Server Version 1.3 |