Changes with Apache 2.0.40
+ *) Fix proxy so that it is possible to access ftp: URLs via a proxy
+ chain. [Peter Van Biesen <peter.vanbiesen@vlafo.be>]
+
*) mod-defalte now checks to make sure that 'gzip-only-text/html' is
set to 1, so we can exclude things from the general case with
browsermatch. [Ian Holsman, Andre Schild <A.Schild@aarboard.ch>]
}
is_ssl = 1;
}
- else if (strncasecmp(url, "http:", 5)) {
+ 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 */
+ return DECLINED; /* only interested in HTTP, or FTP via proxy */
}
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
"proxy: HTTP: serving URL %s", url);