mirror of
https://github.com/caddyserver/caddy.git
synced 2025-07-10 18:39:23 +08:00
fix
This commit is contained in:
@ -317,13 +317,15 @@ func parsePHPFastCGI(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValue, error
|
|||||||
tryFiles = []string{"{http.request.uri.path}", "{http.request.uri.path}/" + indexFile, indexFile}
|
tryFiles = []string{"{http.request.uri.path}", "{http.request.uri.path}/" + indexFile, indexFile}
|
||||||
} else {
|
} else {
|
||||||
longIndexPattern := "{http.request.uri.path}/" + indexFile
|
longIndexPattern := "{http.request.uri.path}/" + indexFile
|
||||||
|
disableDirRedir = true
|
||||||
|
|
||||||
for _, tf := range tryFiles {
|
for _, tf := range tryFiles {
|
||||||
if tf == longIndexPattern {
|
if tf == longIndexPattern {
|
||||||
|
disableDirRedir = false
|
||||||
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
disableDirRedir = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if !disableDirRedir {
|
if !disableDirRedir {
|
||||||
|
Reference in New Issue
Block a user