simplify again

This commit is contained in:
Kévin Dunglas 2024-11-19 00:08:43 +01:00
parent d85c778775
commit 82249e2073
No known key found for this signature in database
GPG Key ID: 4D04EBEF06AAF3A6

View File

@ -331,7 +331,7 @@ func parsePHPFastCGI(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValue, error
// route to redirect to canonical path if index PHP file
redirMatcherSet := caddy.ModuleMap{
"file": h.JSON(fileserver.MatchFile{
TryFiles: []string{"{http.request.uri.path}/" + indexFile},
TryFiles: []string{dirIndex},
}),
"not": h.JSON(caddyhttp.MatchNot{
MatcherSetsRaw: []caddy.ModuleMap{