mirror of
https://github.com/caddyserver/caddy.git
synced 2025-04-19 18:58:50 +08:00
review
This commit is contained in:
parent
a346160543
commit
1c4146c3ce
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user