Received: (qmail 42601 invoked by uid 501); 9 Oct 2000 16:20:12 -0000 Message-Id: <20001009162012.42600.qmail@locus.apache.org> Date: 9 Oct 2000 16:20:12 -0000 From: Rainer Scherg Reply-To: Rainer.Scherg@rexroth.de To: submit@bugz.apache.org Subject: ProxyPassreverse handles some Replies not correctly... X-Send-Pr-Version: 3.110 >Number: 6644 >Category: mod_proxy >Synopsis: ProxyPassreverse handles some Replies not correctly... >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Oct 09 09:30:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Rainer.Scherg@rexroth.de >Release: 1.3.11 >Organization: apache >Environment: Sun Solaris, GCC >Description: Hi! We are using ProxyPass and ProxyPassReverse to hide "external" or "sub-Servers" within our main apache server. I discovered that ProxyPassReverse could not handle all responses from some external server. Mostly, if the are trying to maipulate URLs via absolute server addressing... But not in this case: E.g. ProxyPass /rexrothnews http://www.rexrothnews.com ProxyPassReverse /rexrothnews http://www.rexrothnews.com The reply from the rexrothnews-server is an location header containing: Location: start.nsf?Open ===> brings up the URL http://myserver/start.nsf?Open instead of http://myserver/rexrothnews/start.nsf?Open The problem seems to be in proxy_http.c (proxy_location_reverse_map). Seems to be, that there should be some checks on the variable 'url', if a complete URL or relative URI is returned... Is this a bug in apache, or is the returned location header (by the external server) not compliant to http protocol? >How-To-Repeat: Just try it with any domino server or http://www.rexrothnews.com (see example) >Fix: >Release-Note: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]