* Construct a site in the reverse proxy case when there is non.
Submitted by: rpluem
Reviewed by: jim
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@696315
13f79535-47bb-0310-9956-
ffa450edef68
http://svn.apache.org/viewvc?rev=639010&view=rev (mmn)
+1: niq, rpluem, mturk
- * mod_proxy_ftp: Build a correct Base HRef for directory listings in the
- reverse proxy case.
- Trunk version of patch:
- http://svn.apache.org/viewvc?rev=681190&view=rev
- Backport version for 2.2.x of patch:
- Trunk version of patch works
- +1: rpluem, jim, jerenkrantz
-
* mod_proxy: Add the possibility to set a separate connection timeout for
backend workers.
PR: 45445
/* 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);