Hi Hendrik;
>
> > RewriteRule "^/alpha/gobeta/(.*)$" http://server2.localnet:8080/beta/$1
> > [P]
> If the RewriteRule is specified with the option [P] it works correctly. The
> request
> https://example.ort/alpha/gobeta/anypath is sent to the beta backend.
>
> > Also, it seems to me that
Hi Yann,
> RewriteRule "^/alpha/gobeta/(.*)$" http://server2.localnet:8080/beta/$1
[P]
If the RewriteRule is specified with the option [P] it works correctly. The
request
https://example.ort/alpha/gobeta/anypath is sent to the beta backend.
> Also, it seems to me that "/alpha/gobeta/.." is not
On Thu, Mar 3, 2022 at 12:24 PM Yann Ylavic wrote:
>
> Hi Hendrik;
>
> >
> > after reading your commit comment in https://svn.apache.org/r1898509 I
> > realised that one important test case is missing:
> > What happens if mod_rewrite manipulates the URL of a target that is proxied
> > with the
Hi Hendrik;
>
> after reading your commit comment in https://svn.apache.org/r1898509 I
> realised that one important test case is missing:
> What happens if mod_rewrite manipulates the URL of a target that is proxied
> with the option mapping=servlet?
>
> From my point of view this test case
Hi Yann,
after reading your commit comment in https://svn.apache.org/r1898509 I
realised that one important test case is missing:
What happens if mod_rewrite manipulates the URL of a target that is proxied
with the option mapping=servlet?
>From my point of view this test case fails. :-(
Hi,
>
> I have applied your patch to my httpd-2.4.52 and created two test cases.
> One with a simple RewriteRule and a second one using a RewriteMap.
> Both are working fine. :-)
Thanks for testing! Now checked in https://svn.apache.org/r1898509
Regards;
Yann.
Hi Yann
Anyway, could you please try the attached patch and see if it works for you?
>
I have applied your patch to my httpd-2.4.52 and created two test cases.
One with a simple RewriteRule and a second one using a RewriteMap.
Both are working fine. :-)
Test logs attached:
Hi Hendrik,
>
> Is this a bug or do I have to use the "mapping=servlet" option very carefully?
I'd say both..
mod_proxy mapping= acts very early in request processing and kind of
"appropriates" the request URI to mod_proxy, confusing mod_rewrite, so
it's probably a bug because your use case is
Hi httpd users,
After adding the mapping=servlet option in the ProxyPass configuration, my
RewriteRule no longer works as desired.
Example:
Hostname: example.org
ProxyPass /alpha http://server1.localnet:8080/alpha
ProxyPass /beta http://server2.localnet:8080/beta mapping=servlet