diff options
author | Francis Lavoie <[email protected]> | 2024-11-28 12:38:46 -0500 |
---|---|---|
committer | Francis Lavoie <[email protected]> | 2024-12-01 17:21:44 -0500 |
commit | d5237a62c72dc5a57104b6d1d94297e0a9ad23f9 (patch) | |
tree | ac2be19ee8cff6e8cbb3f7d5a9d1b6772413e1d0 /modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go | |
parent | 68edb1acd1860552542314cdaec1094a3cb7e33a (diff) | |
download | caddy-prefixed-query.tar.gz caddy-prefixed-query.zip |
Use orig_uri instead for the redirect, shorter Caddyfile shortcutprefixed-query
Diffstat (limited to 'modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go')
-rw-r--r-- | modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go b/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go index 1025fcd35..e0a0dc5f2 100644 --- a/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go +++ b/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go @@ -343,7 +343,7 @@ func parsePHPFastCGI(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValue, error } redirHandler := caddyhttp.StaticResponse{ StatusCode: caddyhttp.WeakString(strconv.Itoa(http.StatusPermanentRedirect)), - Headers: http.Header{"Location": []string{"{http.request.orig_uri.path}/{http.request.uri.prefixed_query}"}}, + Headers: http.Header{"Location": []string{"{http.request.orig_uri.path}/{http.request.orig_uri.prefixed_query}"}}, } redirRoute := caddyhttp.Route{ MatcherSetsRaw: []caddy.ModuleMap{redirMatcherSet}, |