[Bug 70094] New: RewriteCond Directive: Environment variables confused with server v ariables (“Most are documented in […] the Environment Variables doc”)
[email protected] Thu, 28 May 2026 16:47:20 +0000
| Newsgroups | gmane.comp.apache.documentation |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bz.apache.org/bugzilla/show_bug.cgi?id=3D70094
Bug ID: 70094
Summary: RewriteCond Directive: Environment variables confused
with server variables (=E2=80=9CMost are documented in =
[=E2=80=A6] the
Environment Variables doc=E2=80=9D)
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: All
URL: https://httpd.apache.org/docs/trunk/en/mod/mod_rewrite
.html#rewritecond
OS: All
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: Documentation
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
The RewriteCond Directive section of the mod_rewrite reference documents wh=
ich
forms its first argument takes and mentions server variables in an unordered
list of 4 items. The explanation of server variables contains:
> These variables all correspond to the similarly named HTTP MIME-headers, =
C variables of the Apache HTTP Server or struct tm fields of the Unix syste=
m. Most are documented in the Expressions doc, in the Environment Variables=
doc, or the CGI specification (RFC 3875).
This confuses environment variables with server variables. As
https://httpd.apache.org/docs/trunk/en/env.html#url-rewriting explains:
> The %{ENV:variable} form of TestString in the RewriteCond allows mod_rewr=
ite's rewrite engine to make decisions conditional on environment variables=
. Note that the variables accessible in mod_rewrite without the ENV: prefix=
are not actually environment variables. Rather, they are variables special=
to mod_rewrite which cannot be accessed from other modules.
>=20
By the way, =E2=80=9Cstruct tm fields of the Unix system=E2=80=9D is not pa=
rticularly clear.
=F0=9F=85=AD=F0=9F=84=8D: https://www.philippecloutier.com/Common+infrastru=
cture+licensing#its
--=20
You are receiving this mail because:
You are the assignee for the bug.=