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 2015/05/09 17:54:42 UTC

[Bug 57911] New: Rewrite documentation unclear or wrong about what is matched (URL path)

https://bz.apache.org/bugzilla/show_bug.cgi?id=57911

            Bug ID: 57911
           Summary: Rewrite documentation unclear or wrong about what is
                    matched (URL path)
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Documentation
          Assignee: docs@httpd.apache.org
          Reporter: chealer@gmail.com

http://httpd.apache.org/docs/trunk/en/mod/mod_rewrite.html#rewriterule says:

Pattern is a perl compatible regular expression. On the first RewriteRule, it
is matched against the (%-decoded) URL-path of the request, or, in
per-directory context (see below), the URL path relative to that per-directory
context. Subsequent patterns are matched against the output of the last
matching RewriteRule.

I think the second part is wrong, or at least unclear. 

If "URL path" refers to a "URL-path", which is defined as "A
DocumentRoot-relative path", there is a contradiction. If not, "the URL path
relative to that per-directory context" is unclear.

This paragraph was changed recently (see #53153 for background).

In https://bz.apache.org/bugzilla/show_bug.cgi?id=52000#c11 I suggested
"the request's path relative to the directory for which the rule is defined"
but I don't know if this is clear.

By the way, in the first sentence, "perl compatible regular expression" could
be replaced with "regex", defined in
http://httpd.apache.org/docs/trunk/en/mod/directive-dict.html#Syntax

-- 
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 57911] Rewrite documentation unclear or wrong about what is matched (URL path)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57911

Filipus Klutiero <ch...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Filipus Klutiero <ch...@gmail.com> ---
Eric Covener fixed this in r1757020 and r1757023.

Thanks Rich

-- 
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 57911] Rewrite documentation unclear or wrong about what is matched (URL path)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57911

--- Comment #1 from Rich Bowen <rb...@apache.org> ---
I'm going to close this ticket, because the paragraph referenced no longer
exists in trunk, 2.2, or 2.4, and so the ticket no longer makes sense. Please
open a new ticket if you find the confusing phrasing still exists somewhere in
the existing versions of the docs.

-- 
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