The following reply was made to PR mod_proxy/1565; it has been noted by GNATS.
From: Robert Bossecker <[EMAIL PROTECTED]> To: Marc Slemko <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Subject: Re: mod_proxy/1565: ftp proxy grabs files relative to login point, which may cause some confusion Date: Wed, 17 Dec 1997 03:20:51 +0100 Hi, Marc Slemko wrote: > The current code is done the way it is on purpose; it follows RFC 1738. > > That said, RFC 1738 is broken and the entire directory handling code of > the proxy_ftp.c should be rewritten, so that what you describe works among > many other things. > I've read the corresponding section "3.2.2", which describes the proposed behaviour.So what i can say is, that the mod_proxy is basically designed to retrieve the files conform to the RFC. The problem i've reported showed up by updating a virus scanner for the DOS/Windows Environment, the software allows you to specify a proxy and then it tried to get a URL similar to those described in the problem. But the URL they specify will get only a relative path according to RFC 1738. So my quick hack is only a workaround to this problem, but maybe a lot of other users will face the same problem if the try to update their virus scanners. Maybe these company should change their used URL, but maybe it's compiled into the product :-( and they are not willingly to change anything. > Sigh. Since it may be a looooooong time before the proxy is fixed > properly, we will consider the impact of a workaround as you describe. It is possible that we can use URL-rewriting for some locations, maybe the best idea, i tried it for this special case and it works. Here comes the recipe: 1. you need mod_rewrite 2. add those lines and modify them corresponding to your needs <Directory proxy:ftp://*@<some ftp-host>/*> RewriteEngine on RewriteRule ^(proxy:ftp://.*@<some ftp-host>/)(.*) $1%2F$2 </Directory> This will put the "%2F" character between host-part and url-path. maybe the pattern should be specified more precisely, if somebody uses a @ in a url-path and no user/password is given in the url and the hostname also appears in the url-path. I think we can close this item, sorry for bothering you. Thanks -- Robert Bossecker | Fresenius AG, Bad Homburg, Germany UNIX-Systemmanager| Phone: +49 6171 60 7677 | Fax : +49 6171 60 7858 | Email: [EMAIL PROTECTED]
