Re: ProxyPass option mapping=servlet hurts mod_rewrite

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 fails.  :-(
>    ProxyPass /beta   http://server2.localnet:8080/beta  mapping=servlet
>    RewirteRule "^/alpha/gobeta"  /beta [PT,L]
> Calling  https://example.org/alpha/gobeta/test sends back a  404 instead the beta content.
> In this case mod_proxy could not map the requests to the beta backend.

Given that "ProxyPass ... mapping=servlet" applies before the
RewriteRule, I don't see how you can have a RewriteRule [PT] that
either "cancels" the ProxyPass (like in your RewriteMap examples)
and/or that rewrites the uri but keeps proxying (like in the above
example).

Isn't:
 RewriteRule "^/alpha/gobeta/(.*)$"  http://server2.localnet:8080/beta/$1 [P]
(or alike) what you are looking for in the above example?

Regards;
Yann.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux