httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 42975] New: - ProxyPassReverse not handling relative redirects properly
Date Wed, 25 Jul 2007 21:46:53 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42975>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42975

           Summary: ProxyPassReverse not handling relative redirects
                    properly
           Product: Apache httpd-2
           Version: 2.2.4
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: apacheproblem@library.uiuc.edu


The ProxyPassReverse is not rewriting relative redirects properly.

The mod_proxy configuration on the frontend server is as follows:

##
## frontend.mydomain.com
ProxyPass /brown/ http://backend.mydomain.com/
<Location /brown/>
  ProxyPassReverse http://backend.mydomain.com/
</Location>
##


A request is made to http://frontend.mydomain.com/brown/test.pl

The server "frontend" requests http://backend.mydomain.com/test.pl which
responds with this redirect header:

Location:  /test/test.txt


But now, for some reason, the frontend server does not interpret this
as http://frontend.mydomain.com/brown/test/text.txt, but rather as
http://frontend.mydomain.com/test/text.txt yielding a not-surprising
404 error.

If I change test.pl on the back end server to issue the redirect
header:

Location: http://backend.mydomain.com/test/test.txt

the frontend _does_ interpret this correctly as
http://frontend.mydomain.com/brown/test/text.txt

Unfortunately, since I do not have any control over the backend server,
I cannot get it to issue absolute redirects. Thus, I need the frontend
Apache proxy to handle relative redirects properly.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message