8335b1
diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c
8335b1
index c37a09b..2121892 100644
8335b1
--- a/modules/proxy/proxy_util.c
8335b1
+++ b/modules/proxy/proxy_util.c
8335b1
@@ -1733,6 +1733,9 @@ PROXY_DECLARE(char *) ap_proxy_define_worker(apr_pool_t *p,
8335b1
 
8335b1
     memset(wshared, 0, sizeof(proxy_worker_shared));
8335b1
 
8335b1
+    if (uri.port && uri.port == ap_proxy_port_of_scheme(uri.scheme)) {
8335b1
+        uri.port = 0;
8335b1
+    }
8335b1
     ptr = apr_uri_unparse(p, &uri, APR_URI_UNP_REVEALPASSWORD);
8335b1
     if (PROXY_STRNCPY(wshared->name, ptr) != APR_SUCCESS) {
8335b1
         return apr_psprintf(p, "worker name (%s) too long", ptr);
8335b1
@@ -2688,6 +2691,13 @@ PROXY_DECLARE(int) ap_proxy_connect_backend(const char *proxy_function,
8335b1
                              worker->s->hostname);
8335b1
                 break;
8335b1
             }
8335b1
+
8335b1
+            ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO(02823)
8335b1
+                         "%s: connection established with Unix domain socket "
8335b1
+                         "%s (%s)",
8335b1
+                         proxy_function,
8335b1
+                         conn->uds_path,
8335b1
+                         worker->s->hostname);
8335b1
         }
8335b1
         else
8335b1
 #endif
8335b1
@@ -2780,6 +2790,12 @@ PROXY_DECLARE(int) ap_proxy_connect_backend(const char *proxy_function,
8335b1
                 backend_addr = backend_addr->next;
8335b1
                 continue;
8335b1
             }
8335b1
+
8335b1
+            ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO(02824)
8335b1
+                         "%s: connection established with %pI (%s)",
8335b1
+                         proxy_function,
8335b1
+                         backend_addr,
8335b1
+                         worker->s->hostname);
8335b1
         }
8335b1
 
8335b1
         /* Set a timeout on the socket */