>Number:         1627
>Category:       mod_proxy
>Synopsis:       ProxyPass should handle redirects within the mirrored section
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          change-request
>Submitter-Id:   apache
>Arrival-Date:   Tue Jan  6 11:10:00 PST 1998
>Last-Modified:
>Originator:     [EMAIL PROTECTED]
>Organization:
apache
>Release:        any
>Environment:
n/a
>Description:
If you use ProxyPass to mirror content from server A through server B, and
server A issues a redirect based on something like directory-slash completion,
server B should not pass the redirect through, but instead issue an 
"equivalent" redirect for the mirrored resource on B.

For example, imagine the following in server B's config file:

  ProxyPass /Bpath http://A/Apath

Now imagine a request coming in to server B as follows:

  GET /Bpath HTTP/1.0

B proxies this request over to server A as follows:

  GET /Apath HTTP/1.0

A returns a redirect, since "Apath" is really a directory

  302 Moved Temporarily
  Location: http://A/Apath/

Which server B returns verbatim:

  302 Moved Temporarily
  Location: http://A/Apath/

It would be "ideal" if B returned the location of the mirrored resource on
B rather than on A.  E.g.:

  302 Moved Temporarily
  Location: http://B/Bpath/

Of course if the redirect wasn't under the ProxyPass-mirrored directory, it
should just be relayed verbatim.


>How-To-Repeat:

>Fix:

>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]



Reply via email to