On 07/08/2016 01:21 PM, Jacob Champion wrote:
The root cause appears to be (at least to me) that the proxy URL
canonicalization step does not run when a per-directory rewrite is used.
Instead, mod_rewrite simply hardcodes r->filename to include the query
string. With a server-context rewrite, the canonicalization step is
invoked correctly, which lets mod_proxy_fcgi remove the query string and
set PATH_INFO.
The question is, why the difference? Is this done on purpose? It's not
just an FCGI problem; for example, HTTP proxy canonicalization doesn't
run correctly in per-directory rewrites either. It runs correctly in
server-context rewrites.
Following up on this... There's a workaround patch that has been
backported, but I'd still like to know why this is happening. Are there
any other bugs that can show up if the proxy canonicalization doesn't
happen?
--Jacob