mirror of
https://github.com/caddyserver/caddy.git
synced 2025-04-24 05:44:04 +08:00
fix
This commit is contained in:
parent
1c4146c3ce
commit
4bddf3be1b
@ -317,13 +317,15 @@ 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
|
||||
disableDirRedir = true
|
||||
|
||||
for _, tf := range tryFiles {
|
||||
if tf == longIndexPattern {
|
||||
disableDirRedir = false
|
||||
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
disableDirRedir = true
|
||||
}
|
||||
|
||||
if !disableDirRedir {
|
||||
|
Loading…
x
Reference in New Issue
Block a user