[Bug 57691] mod_proxy/proxy_util confuses UDS scheme with HTTP scheme when using RewriteRule

2024-03-24 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=57691

Yann Ylavic  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |FIXED

--- Comment #12 from Yann Ylavic  ---
(In reply to Chris Seufert from comment #11)
> I am not sure this is fixed for all cases.

This might work with a RewriteRule [PT] flag.

I don't see how this (convoluted) configuration relates to this ticket though
(no "unix:" scheme involved), set to RESOLVED again.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org



[Bug 57691] mod_proxy/proxy_util confuses UDS scheme with HTTP scheme when using RewriteRule

2024-03-24 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=57691

Chris Seufert  changed:

   What|Removed |Added

 Resolution|FIXED   |---
 Status|RESOLVED|REOPENED

--- Comment #11 from Chris Seufert  ---
I am not sure this is fixed for all cases.

I have recently run into an issue with the following config:


  RewriteEngine On
  RewriteCond "%{REQUEST_URI}" !^/___proxy_me/
  RewriteRule ^/(.*)$ "/___proxy_me/$1"
# [L,NE,B=%\ |:]

ProxyPass /___proxy_me/ "http://backend/; upgrade=websocket

What ends up happening is the backend server receives a url like:
%{document_root}%{request_uri}

>From logs of two apache servers main proxying to backend running in docker:

backend-1  | 172.21.0.2 - - [24/Mar/2024:10:49:02 +] "GET
/usr/local/apache2/htdocs/ HTTP/1.1" 404 196
main-1 | 172.21.0.1 - - [24/Mar/2024:10:49:02 +] "GET / HTTP/1.1" 404
196
backend-1  | 172.21.0.3 - - [24/Mar/2024:11:06:25 +] "GET
/usr/local/apache2/htdocs/test-url.html HTTP/1.1" 404 196
main-1 | 172.21.0.1 - - [24/Mar/2024:11:06:25 +] "GET /test-url.html
HTTP/1.1" 404 196

for repoduction using latest docker image version:
https://github.com/cseufert/apache-proxy-test-2

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org



[Bug 57691] mod_proxy/proxy_util confuses UDS scheme with HTTP scheme when using RewriteRule

2021-09-23 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=57691

Yann Ylavic  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #10 from Yann Ylavic  ---
Backported to 2.4.x (r1893556), will be in the next release.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org



[Bug 57691] mod_proxy/proxy_util confuses UDS scheme with HTTP scheme when using RewriteRule

2021-09-23 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=57691

--- Comment #9 from Janne Peltonen  ---
Great, thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org



[Bug 57691] mod_proxy/proxy_util confuses UDS scheme with HTTP scheme when using RewriteRule

2021-09-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=57691

Yann Ylavic  changed:

   What|Removed |Added

   Keywords|PatchAvailable  |FixedInTrunk

--- Comment #8 from Yann Ylavic  ---
Fixed in trunk (r1893516) with Janne's patch which works better than mine when
the RewriteRule is in a directory/location context.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org



[Bug 57691] mod_proxy/proxy_util confuses UDS scheme with HTTP scheme when using RewriteRule

2021-09-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=57691

Yann Ylavic  changed:

   What|Removed |Added

 CC||scre...@gmail.com

--- Comment #7 from Yann Ylavic  ---
*** Bug 65590 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org



[Bug 57691] mod_proxy/proxy_util confuses UDS scheme with HTTP scheme when using RewriteRule

2021-09-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=57691

--- Comment #6 from Yann Ylavic  ---
Attachment 38045 from bug 65590 is possibly more targeted since the "unix:"
scheme is a mod_proxy thing only.

Would that work for you?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org



[Bug 57691] mod_proxy/proxy_util confuses UDS scheme with HTTP scheme when using RewriteRule

2021-04-17 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=57691

--- Comment #5 from Florian Wagner  ---
Hey everyone. Is there anything I can do to speed up getting this included?
Since my last comment I've been running httpd with this patch without any
problems!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org



[Bug 57691] mod_proxy/proxy_util confuses UDS scheme with HTTP scheme when using RewriteRule

2020-11-14 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=57691

Christophe JAILLET  changed:

   What|Removed |Added

   Keywords||PatchAvailable

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org



[Bug 57691] mod_proxy/proxy_util confuses UDS scheme with HTTP scheme when using RewriteRule

2020-11-09 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=57691

Florian Wagner  changed:

   What|Removed |Added

 CC||flor...@wagner-flo.net

--- Comment #4 from Florian Wagner  ---
Hey Janne, I wanted to say thank you for your patch. It solves the problem for
me, too.

When will this be included in a release?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org



[Bug 57691] mod_proxy/proxy_util confuses UDS scheme with HTTP scheme when using RewriteRule

2020-11-09 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=57691

--- Comment #3 from Florian Wagner  ---
Hey Janne, I wanted to say thank you for your patch. It solves the problem for
me, too.

When will this be included in a release?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org



[Bug 57691] mod_proxy/proxy_util confuses UDS scheme with HTTP scheme when using RewriteRule

2020-06-03 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=57691

Janne Peltonen  changed:

   What|Removed |Added

 CC||janne.pelto...@sange.fi

--- Comment #2 from Janne Peltonen  ---
Created attachment 37289
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37289=edit
Patch to add unix: uris to be recognized as absolute paths

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org



[Bug 57691] mod_proxy/proxy_util confuses UDS scheme with HTTP scheme when using RewriteRule

2020-06-03 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=57691

Janne Peltonen  changed:

   What|Removed |Added

  Component|mod_proxy_fcgi  |mod_rewrite

--- Comment #1 from Janne Peltonen  ---
Apparently, this is not a bug of mod_proxy but a bug of mod_rewrite.
mod_rewrite contains the function is_absolute_uri, and in case an uri is not
absolute, with the P flag, the uri will be passed on to the server itself as a
relative uri. The function has an explicit list of absolute uri prefixes it
recognizes, and "unix:" isn't contained in this list. This will lead to the
behaviour noticed by the original reporter. I'll add a patch that solved the
problem at least for me, by adding "unix:" as a recognized absolute uri scheme.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org



[Bug 57691] mod_proxy/proxy_util confuses UDS scheme with HTTP scheme when using RewriteRule

2016-07-26 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=57691

Luca Toscano  changed:

   What|Removed |Added

 CC||toscano.l...@gmail.com
  Component|mod_proxy   |mod_proxy_fcgi

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org



[Bug 57691] mod_proxy/proxy_util confuses UDS scheme with HTTP scheme when using RewriteRule

2015-03-12 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=57691

dferra...@gmail.com changed:

   What|Removed |Added

 CC||dferra...@gmail.com

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org