This commit is contained in:
Kévin Dunglas 2024-11-19 00:00:44 +01:00
parent a346160543
commit 1c4146c3ce
No known key found for this signature in database
GPG Key ID: 4D04EBEF06AAF3A6

View File

@ -317,9 +317,8 @@ func parsePHPFastCGI(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValue, error
tryFiles = []string{"{http.request.uri.path}", "{http.request.uri.path}/" + indexFile, indexFile}
} else {
longIndexPattern := "{http.request.uri.path}/" + indexFile
shortIndexPattern := "{path}/" + indexFile
for _, tf := range tryFiles {
if tf == longIndexPattern || tf == shortIndexPattern {
if tf == longIndexPattern {
break
}
}