Skip to content

Commit

Permalink
fastcgi: Redirect using original URI path (fix #5073)
Browse files Browse the repository at this point in the history
  • Loading branch information
mholt committed Sep 23, 2022
1 parent eead00f commit f7c1a51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go
Expand Up @@ -348,7 +348,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.uri.path}/"}},
Headers: http.Header{"Location": []string{"{http.request.orig_uri.path}/"}},
}
redirRoute := caddyhttp.Route{
MatcherSetsRaw: []caddy.ModuleMap{redirMatcherSet},
Expand Down

0 comments on commit f7c1a51

Please sign in to comment.