httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52181] mod_rewrite Technical Details Ruleset Processing diagram unclear about transition between rules
Date Tue, 10 Apr 2012 17:25:32 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52181

--- Comment #4 from Filipus Klutiero <chealer@gmail.com> 2012-04-10 17:25:32 UTC ---
Thank you Daniel, this does address most of my remaining concerns with the
previous proposition.

There are 2 issues of the current diagram which are not completely addressed:

1. It is assumed that there is at least one rewrite rule. This could be fixed
by changing the destination of the arrow leaving "Apache receives URI", from
RewriteRule to "More rules?". The label for the transition from "More rules?"
to RewriteRule ("Yes (pass on new URI)") may not fit though, if there are no
rules.


2. While there is now clearly a way for the activity to end (reaching "Serve
the file"), I don't think "Filename" is in reality the only way to reach the
end. For example, suppose we have one non-matching rule again. We start at The
request, go to Apache receives URI, to RewriteRule, Check pattern, More rules?.
Since we have no more rules, we go to "File or URI?" still with our original
URI. Then the diagram brings us back to "Apache receives URI", and we're stuck
in a loop.

According to the API phases section:
If a substitution is made in per-directory context, a new internal subrequest
is issued with the new URL, which restarts processing of the request phases.

So what should probably happen after leaving "File or URI?" with a URI is
another decision. If the URI changed, we do go back to "Apache receives URI".
If not, we serve the file.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


Mime
View raw message