You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by bu...@apache.org on 2026/05/14 20:25:32 UTC
[Bug 70042] New: mod_rewrite reference summary: Repetition (environment variables, cookies, headers)
https://bz.apache.org/bugzilla/show_bug.cgi?id=70042
Bug ID: 70042
Summary: mod_rewrite reference summary: Repetition (environment
variables, cookies, headers)
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: All
URL: https://httpd.apache.org/docs/trunk/en/mod/mod_rewrite
.html
OS: All
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: Documentation
Assignee: docs@httpd.apache.org
Reporter: chealer@gmail.com
Target Milestone: ---
The Summary of the mod_rewrite reference contains:
> Each rule can have an unlimited number of attached rule conditions, to allow you to rewrite URL based on server variables, environment variables, HTTP headers, or time stamps.
The next paragraph largely repeats that:
> It can also inspect other values, such as headers, cookies, environment variables.
The patch for #70030 solves that. It also addresses the third confusion listed
there and reduces the risk that readers will think PATH_INFO is a variable just
like QUERY_STRING.
By the way:
1. In the first sentence modified, I do not find it clear what a server
variable is (how that differs from an environment variable).
2. “rewrite URL” should read “rewrite URLs”.
🅭🄍: https://www.philippecloutier.com/Common+infrastructure+licensing#its
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
[Bug 70042] mod_rewrite reference summary: Repetition (environment variables, cookies, headers)
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=70042
--- Comment #1 from Rich Bowen <rb...@apache.org> ---
If the patch for 70030 resolves this, why are you opening a new ticket for it?
PATH_INFO *is* a variable just like QUERY_STRING.
I've fixed the pluralization error.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
[Bug 70042] mod_rewrite reference summary: Repetition (environment variables, cookies, headers)
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=70042
--- Comment #3 from Philippe Cloutier <ch...@gmail.com> ---
Created attachment 40178
--> https://bz.apache.org/bugzilla/attachment.cgi?id=40178&action=edit
Focused patch
Here is a simple patch for this
(In reply to Rich Bowen from comment #1)
> If the patch for 70030 resolves this, why are you opening a new ticket for
> it?
It has not been applied.
> PATH_INFO *is* a variable just like QUERY_STRING.
Ah, thank you very much. I apologize, I searched a little too fast and failed
to realize httpd had 2 PATH_INFOs.
> I've fixed the pluralization error.
Thanks
(In reply to Rich Bowen from comment #2)
> A server variable is a variable set by the server configuration, like say
> document root or server name.
Hum, if that is the case, then "server variables" and "Server-Variables" have
different meanings, since the latter includes variables like REMOTE_HOST
(according to RewriteCond).
> Environment variables are those that are specific to the request, such as
> the request uri or the path info.
>
> Server variables are also available in env so I suppose you'd say that all
> server variables are env vars but not necessarily the other way around.
Hum. httpd has 2 senses for "environment variables". Would that be true of both
senses?
> Perhaps a glossary term is warranted here.
If "server variables" and "Server-Variables" have different meanings, I indeed
strongly recommend to define "server variables" somewhere.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
[Bug 70042] mod_rewrite reference summary: Repetition (environment variables, cookies, headers)
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=70042
Rich Bowen <rb...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
--- Comment #5 from Rich Bowen <rb...@apache.org> ---
Thanks, patch applied.
r1934217 (trunk)
r1934218 (2.4)
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
[Bug 70042] mod_rewrite reference summary: Repetition (environment variables, cookies, headers)
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=70042
--- Comment #2 from Rich Bowen <rb...@apache.org> ---
A server variable is a variable set by the server configuration, like say
document root or server name.
Environment variables are those that are specific to the request, such as the
request uri or the path info.
Server variables are also available in env so I suppose you'd say that all
server variables are env vars but not necessarily the other way around.
Perhaps a glossary term is warranted here.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
[Bug 70042] mod_rewrite reference summary: Repetition (environment variables, cookies, headers)
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=70042
--- Comment #4 from Rich Bowen <rb...@apache.org> ---
> If "server variables" and "Server-Variables" have different meanings, I
> indeed strongly recommend to define "server variables" somewhere.
No, the capitalization of these terms has no bearing on their definition.
Nor does it with path info or query string.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
[Bug 70042] mod_rewrite reference summary: Repetition (environment variables, cookies, headers)
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=70042
--- Comment #8 from Philippe Cloutier <ch...@gmail.com> ---
(In reply to Rich Bowen from comment #2)
> A server variable is a variable set by the server configuration, like say
> document root or server name.
Following Rich’s fixes for issue #70059
(https://github.com/apache/httpd/commit/533c0167bbf90f0beced9f96bdff97894aeb41a7),
I believe “server variable” has a single sense, in which the above is
incorrect. While some server variables are indeed such variables, many (like
QUERY_STRING) are not.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
[Bug 70042] mod_rewrite reference summary: Repetition (environment variables, cookies, headers)
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=70042
--- Comment #6 from Rich Bowen <rb...@apache.org> ---
*** Bug 70044 has been marked as a duplicate of this bug. ***
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
[Bug 70042] mod_rewrite reference summary: Repetition (environment variables, cookies, headers)
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=70042
Philippe Cloutier <ch...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |VERIFIED
--- Comment #7 from Philippe Cloutier <ch...@gmail.com> ---
(In reply to Rich Bowen from comment #4)
> > If "server variables" and "Server-Variables" have different meanings, I
> > indeed strongly recommend to define "server variables" somewhere.
>
> No, the capitalization of these terms has no bearing on their definition.
>
> Nor does it with path info or query string.
"path info" is not standardized, and "pathinfo()" (the PHP function) has little
to do with "PATH_INFO" (the httpd variables).
But for "server variables" and "Server-Variables", what I meant is that if the
set of "server variables" and "Server-Variables" has more than 1 meaning
(either because the former has a single meaning distinct from the other's or
because both spellings have several senses), then the risk of confusion is high
and pointing to a definition of at least the intended sense would be a minimum.
This is now tracked by ticket #70059.
(In reply to Rich Bowen from comment #5)
> Thanks, patch applied.
Thanks
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org