From 738f542f1305748be9c783f81a43061f49d48dba Mon Sep 17 00:00:00 2001 From: Jeff Ohrstrom Date: Thu, 15 Aug 2024 10:21:59 -0400 Subject: [PATCH] fixes #3728 with solution provided by httpd devs --- mod_ood_proxy/lib/ood/proxy.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mod_ood_proxy/lib/ood/proxy.lua b/mod_ood_proxy/lib/ood/proxy.lua index 08a13ed54c..81ce24c442 100644 --- a/mod_ood_proxy/lib/ood/proxy.lua +++ b/mod_ood_proxy/lib/ood/proxy.lua @@ -7,17 +7,16 @@ function set_reverse_proxy(r, conn) -- find protocol used by parsing the request headers local protocol = (r.headers_in['Upgrade'] and "ws://" or "http://") - -- setup request to use mod_proxy for the reverse proxy - r.handler = "proxy-server" - r.proxyreq = apache2.PROXYREQ_REVERSE -- define reverse proxy destination using connection object if conn.socket then - r.filename = "proxy:unix:" .. conn.socket .. "|" .. protocol .. "localhost" .. conn.uri + r.handler = "proxy:unix:" .. conn.socket .. "|" .. protocol .. "localhost" else - r.filename = "proxy:" .. protocol .. conn.server .. conn.uri + r.handler = "proxy:" .. protocol .. conn.server end + r.filename = conn.uri + -- include useful information for the backend server -- provide the protocol used