Bug 65600

Summary: Regression in mod_rewrite proxy via socket
Product: Apache httpd-2 Reporter: Chris Seufert <chris>
Component: mod_proxyAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: RESOLVED DUPLICATE    
Severity: regression    
Priority: P2    
Version: 2.4.49   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Chris Seufert 2021-09-28 01:16:33 UTC
Problem seems to be related to mod_proxy since latest update, something to do with handling unix socket paths, its showing repeated in access log. eg:

apache49_1  | 127.0.0.1 - - [28/Sep/2021:01:02:52 +0000] "GET /usr/local/apache2/htdocs/unix:/run/sock/nginx.sock|http://localhost/usr/local/apache2/htdocs/unix:/run/sock/nginx.sock|http:/localhost/usr/local/apache2/htdocs/unix:/run/sock/nginx.sock|http:/localhost/usr/local/apache2/htdocs/unix:/run/sock/nginx.sock|http:/localhost/usr/local/apache2/htdocs/unix:/run/sock/nginx.sock|http:/localhost/usr/local/apache2/htdocs/unix:/run/sock/nginx.sock|http:/localhost:8049/index.html HTTP/1.1" 403 199

This can cause path to overflow

Repoduce

Setup Apache with default configuration, and enable mod_rewrite and mod_proxy.

Use .htaccess file to Rewrite requests to http over unix socket.

See example repo here with example of working and broken using docker versions of apache 2.4.48 and 2.4.49.

https://github.com/cseufert/apache-proxy-test
Comment 1 Ruediger Pluem 2021-10-04 15:31:26 UTC

*** This bug has been marked as a duplicate of bug 65590 ***