Summary: | InheritDownBefore won't keep vhost-context rules from re-executing after per-dir rules | ||
---|---|---|---|
Product: | Apache httpd-2 | Reporter: | Raphaël Droz <raphael.droz> |
Component: | mod_rewrite | Assignee: | Apache HTTPD Bugs Mailing List <bugs> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 2.4.41 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux |
Description
Raphaël Droz
2020-06-15 16:53:35 UTC
Hello, a few notes: 1) Inherit stuff is, as far as I can recall, only intended to inherit between directory sections or between global/vhost scopes. Are you sure it influences the behavior here? The repetition almost appears more like the typical "run directory scope rewrites and re-inject the result" looping. 2) Does [PT] help on your vhost scope rewriterule? It is doing URL-to-URL mapping and without [PT] it will in fact probe the first path in the substitution to try to figure out what you're doing 1) You're absolutely right! `InheritDownBefore` does not play a role here. With or without it (or even with "RewriteOptions IgnoreInherit" in the directory-context) : vhost's RewriteRules always run. 2) [PT] does help for the "/" issue, thank you! So in the end how to protect against the _"run directory scope rewrites and re-inject the result" looping_ scenarios while avoiding "Rewrite-guard" rule like: `RewriteRule ^/index\.php - [S=1]` ? If it's a re-injection/REDIRECTION (as the logs mention in "[rid#7fbd44690c38/initial/redir#1]"), why [NS] appears not to work? Isn't these actual "subreq"? |