Re: ftp://... and ProxyRemote

Peter Van Biesen <[email protected]>
Newsgroups gmane.comp.apache.mod-proxy
Organization VFSIPH
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.