https://bz.apache.org/bugzilla/show_bug.cgi?id=69261

            Bug ID: 69261
           Summary: 2.4.62 broke UDS reverse proxy
           Product: Apache httpd-2
           Version: 2.4.62
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Hi, I believe I've found a bug in mod_proxy in version 2.4.62 where mod_proxy
is unable to reverse proxy requests to a UDS socket.

I've created this github repository below to reproduce and demonstrate the bug.
It compares 2.4.50's behavior (which works) with 2.4.62's (which doesn't).

https://github.com/johrstrom/httpd-bug-reproducer

Basically it has one LocationMatch that uses LuaHookFixups to set the requests
filename to 'proxy:unix:/some/file|http://localhost/test' (I don't use
SetHandler or similar, I use the lua script to modify the request). This works
in previous versions, as the repository demonstrates, but does not in 2.4.62.


In 2.4.50 I see messages log like this where it accepts the URL and routes
appropriately. 

[Wed Aug 14 16:06:11.632974 2024] [proxy_http:trace1] [pid 8:tid
137483257747200] mod_proxy_http.c(1875): [client 10.0.2.100:40248] HTTP:
serving URL http://localhost/test


However, in 2.4.62 I see log messages like this where proxy_http declines the
URL.

[Wed Aug 14 16:06:31.593633 2024] [proxy_http:debug] [pid 11:tid 28]
mod_proxy_http.c(1901): [client 10.0.2.100:50980] AH01113: HTTP: declining URL
unix:/tmp/bug_test.sock|http://localhost/test

As I've said, I've got the github repository to demonstrate and reproduce the
error with containers. If there's any more information you'd like, please let
me know.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to