Re: ProxyPass option mapping=servlet hurts mod_rewrite

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

 



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 matched by the
> "ProxyPass /beta ...", so it really boils down to the RewriteRule only.
> What do you expect here?
But when I take the option [PT] the behavior changes. Without "mapping=servlet" the
request is sent to the beta backend. With "mapping=servlet" the request is replied
by a 404 NOT FOUND.  -  Is this change of behavior acceptable?
Maybe it is acceptable cause the option [PT] is the wrong choice if I want the request
to be replied by the proxied beta backend.
But some inexperienced admins will run into trouble. (like me ;-)

Regards,
Hendrik

[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