httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54319] New: ProxyPass has no effect in <Location> if rewrite occurs
Date Mon, 17 Dec 2012 10:46:24 GMT
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


Mime
View raw message