httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Fwd: [Bug 54319] New: ProxyPass has no effect in <Location> if rewrite occurs
Date Tue, 01 Jan 2013 19:28:52 GMT
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:  <bugzilla@apache.org>
Date: Mon, Dec 17, 2012 at 5:46 AM
Subject: [Bug 54319] New: ProxyPass has no effect in <Location> if
rewrite occurs
To: bugs@httpd.apache.org


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: bugs@httpd.apache.org
          Reporter: laurent.bod+bugzilla@gmail.com
    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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org



--
Eric Covener
covener@gmail.com

Mime
View raw message