httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r681190 - /httpd/httpd/trunk/modules/proxy/mod_proxy_ftp.c
Date Wed, 30 Jul 2008 20:15:41 GMT
Author: rpluem
Date: Wed Jul 30 13:15:41 2008
New Revision: 681190

URL: http://svn.apache.org/viewvc?rev=681190&view=rev
Log:
* Construct a site in the reverse proxy case when there is non.

Modified:
    httpd/httpd/trunk/modules/proxy/mod_proxy_ftp.c

Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_ftp.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_ftp.c?rev=681190&r1=681189&r2=681190&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy_ftp.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy_ftp.c Wed Jul 30 13:15:41 2008
@@ -318,6 +318,13 @@
 
         /* Save "scheme://site" prefix without password */
         site = apr_uri_unparse(p, &f->r->parsed_uri, APR_URI_UNP_OMITPASSWORD |
APR_URI_UNP_OMITPATHINFO);
+        /*
+         * In the reverse proxy case we usually have no site. So contruct
+         * one.
+         */
+        if ((*site == '\0') && (r->proxyreq == PROXYREQ_REVERSE)) {
+            site = ap_construct_url(p, "", r);
+        }
         /* ... and path without query args */
         path = apr_uri_unparse(p, &f->r->parsed_uri, APR_URI_UNP_OMITSITEPART |
APR_URI_UNP_OMITQUERY);
 



Mime
View raw message