In 2.2, ProxyPass in <Location caused entries to be added to the per-server config. In 2.4, it only adds to the per-dir config.
So in 2.4 it is no longer possible to rewrite with the PT flag and target the argument to <Location> and have something proxied. Does anyone think this is worth preserving in 2.4, maybe by also storing the rules at the bottom of the per-server config? Or should we just document it in the Upgrading to 2.4... and maybe somewhere in the extended mod_rewrite documentation? Also, is there some kind of benefit alluded to recently about using ProxyPass inside Location? Can someone expound on that? Thanks, ---------- Forwarded message ---------- From: <[email protected]> Date: Mon, Dec 17, 2012 at 5:46 AM Subject: [Bug 54319] New: ProxyPass has no effect in <Location> if rewrite occurs To: [email protected] https://issues.apache.org/bugzilla/show_bug.cgi?id=54319 Bug ID: 54319 Summary: ProxyPass has no effect in <Location> if rewrite occurs Product: Apache httpd-2 Version: 2.4.3 Hardware: Other OS: Linux Status: NEW Severity: regression Priority: P2 Component: Core Assignee: [email protected] Reporter: [email protected] Classification: Unclassified Hi all, My Apache is configured as a reverse proxy : RewriteCond %{REQUEST_URI} ^/pioupiou/ RewriteRule ^/pioupiou/ /mirror/foo/ [PT] <Location /mirror/foo/> ProxyPass http://backend.example.com/ </Location> If I request : http://mondomain/mirror/foo/ => I access correctly to backend.example.com/ If I request : http://mondomain/pioupiou/ => Apache is rewritting correctly but return an HTTP404 /htdocs/mirror not found (in other words, the ProxyPass have been ignore) If I remove the <Location> notation and get the right syntax for ProxyPass : RewriteCond %{REQUEST_URI} ^/pioupiou/ RewriteRule ^/pioupiou/ /mirror/foo/ [PT] ProxyPass /mirror/foo/ http://backend.example.com/ If I request : http://mondomain/pioupiou/ => it works !! -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] -- Eric Covener [email protected]
