httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
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

--- Comment #4 from Filipus Klutiero <> 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

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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message