You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2007/07/25 23:46:53 UTC
DO NOT REPLY [Bug 42975] New: - ProxyPassReverse not handling relative redirects properly
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
DO NOT REPLY [Bug 42975] - ProxyPassReverse not handling relative redirects properly
Posted by bu...@apache.org.
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
nick@webthing.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From nick@webthing.com 2007-07-25 15:46 -------
Your configuration is wrong. Your backend is not HTTP-compliant. My tutorial
at apachetutor explains how to deal with this particular brokenness in a backend.
--
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