41a6c3
diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c
41a6c3
index a78224b..e672e4a 100644
41a6c3
--- a/modules/proxy/proxy_util.c
41a6c3
+++ b/modules/proxy/proxy_util.c
41a6c3
@@ -2260,8 +2260,12 @@ ap_proxy_determine_connection(apr_pool_t *p, request_rec *r,
41a6c3
      * The scheme handler decides if this is permanent or
41a6c3
      * short living pool.
41a6c3
      */
41a6c3
-    /* are we connecting directly, or via a proxy? */
41a6c3
-    if (!proxyname) {
41a6c3
+    /* Unless we are connecting the backend via a (forward Proxy)Remote, we
41a6c3
+     * have to use the original form of the URI (non absolute), but this is
41a6c3
+     * also the case via a remote proxy using the CONNECT method since the
41a6c3
+     * original request (and URI) is to be embedded in the body.
41a6c3
+     */
41a6c3
+    if (!proxyname || conn->is_ssl) {
41a6c3
         *url = apr_pstrcat(p, uri->path, uri->query ? "?" : "",
41a6c3
                            uri->query ? uri->query : "",
41a6c3
                            uri->fragment ? "#" : "",