xml version="1.0" encoding="ISO-8859-1"?>
|
Apache HTTP Server Version 2.2 ![]() Apache Module mod_version
SummaryThis module is designed for the use in test suites and large
networks which have to deal with different httpd versions and
different configurations. It provides a new container -- Examples
See below for further possibilities. Directives<IfVersion> Directive
<IfVersion> section encloses
configuration directives which are executed only if the
httpd version
matches the desired criteria. For normal (numeric) comparisons the
version argument has the format
major[.minor[.patch]], e.g.
2.1.0 or 2.2. minor and
patch are optional. If these numbers are omitted, they are
assumed to be zero. The following numerical operators are
possible:
Example
Besides the numerical comparison it is possible to match a regular expression against the httpd version. There are two ways to write it:
Example
In order to reverse the meaning, all operators can be preceded by an
exclamation mark (
If the operator is omitted, it is assumed to be
|