Re: [users@httpd] ProxyPass option mapping=servlet hurts mod_rewrite

2022-03-06 Thread Yann Ylavic
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

Re: [users@httpd] ProxyPass option mapping=servlet hurts mod_rewrite

2022-03-03 Thread Hendrik Harms
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

Re: [users@httpd] ProxyPass option mapping=servlet hurts mod_rewrite

2022-03-03 Thread Yann Ylavic
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

Re: [users@httpd] ProxyPass option mapping=servlet hurts mod_rewrite

2022-03-03 Thread Yann Ylavic
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

Re: [users@httpd] ProxyPass option mapping=servlet hurts mod_rewrite

2022-03-02 Thread Hendrik Harms
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. :-(

Re: [users@httpd] ProxyPass option mapping=servlet hurts mod_rewrite

2022-03-01 Thread Yann Ylavic
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.

Re: [users@httpd] ProxyPass option mapping=servlet hurts mod_rewrite

2022-03-01 Thread Hendrik Harms
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:

Re: [users@httpd] ProxyPass option mapping=servlet hurts mod_rewrite

2022-02-28 Thread Yann Ylavic
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

[users@httpd] ProxyPass option mapping=servlet hurts mod_rewrite

2022-02-28 Thread Hendrik Harms
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