diff options
| author | Yann Ylavic <ylavic@apache.org> | 2021-09-22 18:16:38 +0000 |
|---|---|---|
| committer | Yann Ylavic <ylavic@apache.org> | 2021-09-22 18:16:38 +0000 |
| commit | 6d76cbb9100bf34250ffba0bded08e075380be88 (patch) | |
| tree | ad8f0ccf41738c16af4e890a55b810821418bebf /modules/mappers | |
| parent | 994787e1262a1cf2b064e141eb5a6d194d92c09b (diff) | |
| download | httpd-6d76cbb9100bf34250ffba0bded08e075380be88.tar.gz | |
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
Diffstat (limited to 'modules/mappers')
| -rw-r--r-- | modules/mappers/mod_rewrite.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/mappers/mod_rewrite.c b/modules/mappers/mod_rewrite.c index 06d8a15437..dc21a8eb83 100644 --- a/modules/mappers/mod_rewrite.c +++ b/modules/mappers/mod_rewrite.c @@ -653,6 +653,13 @@ static unsigned is_absolute_uri(char *uri, int *supportsqs) return 6; } break; + + case 'u': + case 'U': + if (!ap_cstr_casecmpn(uri, "nix:", 4)) { /* unix: */ + *sqs = 1; + return 5; + } } return 0; |
