Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 13, 10:30 UTC
fastcgi: Redirect using original URI path (fix #5073)
Matthew Holt committed
Sep 23, 2022 at 14:36 UTC
f7c1a51efb6d0e578c6f699b6f3498b5930cdd32
1 file changed
+1
-1
modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go
+1
-1
@@ -348,7 +348,7 @@ func parsePHPFastCGI(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValue, error
348
}
349
redirHandler := caddyhttp.StaticResponse{
350
StatusCode: caddyhttp.WeakString(strconv.Itoa(http.StatusPermanentRedirect)),
351
- Headers: http.Header{"Location": []string{"{http.request.uri.path}/"}},
351
+ Headers: http.Header{"Location": []string{"{http.request.orig_uri.path}/"}},
352
}
353
redirRoute := caddyhttp.Route{
354
MatcherSetsRaw: []caddy.ModuleMap{redirMatcherSet},