diff options
author | Matt Holt <mholt@users.noreply.github.com> | 2022-09-28 15:22:45 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-28 15:22:45 -0600 |
commit | 897a38958cb733551339f40f04e5798fcda55bcc (patch) | |
tree | 1f15a03c5d6f50a4fce046822c65d1c0ee23dfa5 /caddytest/integration/caddyfile_adapt/php_fastcgi_expanded_form.txt | |
parent | 61822f129b9edbbc1ed2fd068d8e5ba919b5881d (diff) | |
parent | 013b5103527cb1646dc717cadf48ad34aceaa77e (diff) |
Merge pull request #5076 from caddyserver/fastcgi-redir
fastcgi: Redirect using original URI path (fix #5073) and rewrite: Only trim prefix if matched
Diffstat (limited to 'caddytest/integration/caddyfile_adapt/php_fastcgi_expanded_form.txt')
-rw-r--r-- | caddytest/integration/caddyfile_adapt/php_fastcgi_expanded_form.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/caddytest/integration/caddyfile_adapt/php_fastcgi_expanded_form.txt b/caddytest/integration/caddyfile_adapt/php_fastcgi_expanded_form.txt index bb7c7f7..2fa2b79 100644 --- a/caddytest/integration/caddyfile_adapt/php_fastcgi_expanded_form.txt +++ b/caddytest/integration/caddyfile_adapt/php_fastcgi_expanded_form.txt @@ -8,7 +8,7 @@ route { } not path */ } - redir @canonicalPath {path}/ 308 + redir @canonicalPath {http.request.orig_uri.path}/ 308 # If the requested file does not exist, try index files @indexFiles { @@ -50,7 +50,7 @@ route { "handler": "static_response", "headers": { "Location": [ - "{http.request.uri.path}/" + "{http.request.orig_uri.path}/" ] }, "status_code": 308 |