caddy/modules/caddyhttp/reverseproxy/fastcgi
Kévin Dunglas 8822b60863
fastcgi: rewrite to index.php only if it exists (#8372)
php_fastcgi used first_exist_fallback, which since v2.11.8 matches its final entry even when the file is absent. On a site without index.php, "/", directories with an index.html and missing files were all rewritten to the missing index.php, so file_server never served them.

php_fastcgi now uses first_exist, as v2.11.7 effectively did since globbing skipped absent files. Explicitly configured first_exist_fallback keeps its semantics. The transport normalizes the path itself, so the dot-segment protection doesn't depend on this rewrite.

Fixes #8367
2026-11-08 22:04:20 +00:00
..
caddyfile.go fastcgi: rewrite to index.php only if it exists (#8372) 2026-11-08 22:04:20 +00:00
client.go
…
client_test.go
…
contentlength_test.go
…
fastcgi.go fastcgi: split script path at segment boundary (#8386) 2026-11-08 21:54:23 +00:00
fastcgi_test.go fastcgi: split script path at segment boundary (#8386) 2026-11-08 21:54:23 +00:00
fastcgi_windows_test.go fastcgi: reject paths whose escaped form selects another script (#8357) 2026-11-04 18:02:42 -05:00
header.go
…
incremental_test.go
…
pool.go
…
reader.go
…
record.go
…
redirect_test.go
…
request_trailers_test.go
…
responselength_test.go
…
writer.go
…