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