ftp://... and ProxyRemote

ftp://... and ProxyRemote

am 08.08.2002 10:23:41 von Peter Van Biesen

Hello,

I have a proxychain set up of two 2.0.39's, the first one on the
intranet and the second one in the DMZ. To forward the requests, I use
the ProxyRemote directive. However, I don't seem to get ftp://... URL's
working. I looked in the source and, as I see it, the forwarding code is
simply not present, or am I mistaken ?

Anyway, can anybody confirm this ? Does anybody know if this code is
being/has been written ( the HEAD revision still doesn't implement this
.... )?

Thanx !

Peter.

Re: ftp://... and ProxyRemote

am 08.08.2002 16:24:22 von Peter Van Biesen

Found the problem : consider following patch :

*** proxy_http.c Fri Jun 14 19:14:57 2002
--- proxy_http_new.c Thu Aug 8 11:15:36 2002
***************
*** 1032,1038 ****
}
is_ssl = 1;
}
! else if (strncasecmp(url, "http:", 5)) {
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
"proxy: HTTP: declining URL %s", url);
return DECLINED; /* only interested in HTTP */
--- 1032,1038 ----
}
is_ssl = 1;
}
! else if (!(strncasecmp(url, "http:", 5)==0 || (strncasecmp(url,
"ftp:", 4)==0 && proxyname))) {
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
"proxy: HTTP: declining URL %s", url);
return DECLINED; /* only interested in HTTP */

proxy_ftp doesn't do the forwarding because it expects proxy_http to
catch it. So, with this patch, proxy_http will handle the request if it
is an ftp request and a proxyname is known. Is this a good solution ? It
works for me, anyhow ...

Peter.

Peter Van Biesen wrote:
>
> Hello,
>
> I have a proxychain set up of two 2.0.39's, the first one on the
> intranet and the second one in the DMZ. To forward the requests, I use
> the ProxyRemote directive. However, I don't seem to get ftp://... URL's
> working. I looked in the source and, as I see it, the forwarding code is
> simply not present, or am I mistaken ?
>
> Anyway, can anybody confirm this ? Does anybody know if this code is
> being/has been written ( the HEAD revision still doesn't implement this
> ... )?
>
> Thanx !
>
> Peter.