]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
mod_rewrite: Fix UDS ("unix:") scheme for [P] rules. PR 57691 + 65590.
authorYann Ylavic <ylavic@apache.org>
Wed, 22 Sep 2021 18:16:38 +0000 (18:16 +0000)
committerYann Ylavic <ylavic@apache.org>
Wed, 22 Sep 2021 18:16:38 +0000 (18:16 +0000)
commit6d76cbb9100bf34250ffba0bded08e075380be88
treead8f0ccf41738c16af4e890a55b810821418bebf
parent994787e1262a1cf2b064e141eb5a6d194d92c09b
mod_rewrite: Fix UDS ("unix:") scheme for [P] rules.  PR 57691 + 65590.

Handle the unix: scheme as an obsolute URI or a rule like:
  RewriteRule ^/(.*) unix:/path/to/uds.sock|fcgi://localhost/$1 [P]
sets r->filename for /index.html as:
  proxy:http://www.example.com/unix:/path/to/uds.sock|http://localhost/index.html
instead of the expected:
  proxy:unix:/path/to/uds.sock|http://localhost/index.html

Submitted by: Janne Peltonen <janne.peltonen sange.fi>
Reviewed by: ylavic

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1893516 13f79535-47bb-0310-9956-ffa450edef68
changes-entries/rewrite_uds.txt [new file with mode: 0644]
modules/mappers/mod_rewrite.c