www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Scherg <Rainer.Sch...@rexroth.de>
Subject mod_proxy/6644: ProxyPassreverse handles some Replies not correctly...
Date Mon, 09 Oct 2000 16:20:12 GMT

>Number:         6644
>Category:       mod_proxy
>Synopsis:       ProxyPassreverse handles some Replies not correctly...
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Oct 09 09:30:01 PDT 2000
>Originator:     Rainer.Scherg@rexroth.de
>Release:        1.3.11
Sun Solaris, GCC

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:

 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?

Just try it with any domino server or http://www.rexrothnews.com (see example)

 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> 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!     ]

View raw message