From 258d422e3fc6a8bb4590f0c0eee3a3392dd27feb Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Mon, 4 May 2020 21:27:29 -0400 Subject: [PATCH] docs: Update the php_fastcgi expanded form --- .../markdown/caddyfile/directives/php_fastcgi.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/docs/markdown/caddyfile/directives/php_fastcgi.md b/src/docs/markdown/caddyfile/directives/php_fastcgi.md index ed8d009..26af8ad 100644 --- a/src/docs/markdown/caddyfile/directives/php_fastcgi.md +++ b/src/docs/markdown/caddyfile/directives/php_fastcgi.md @@ -33,14 +33,18 @@ route { file { try_files {path}/index.php } - not { - path */ - } + not path */ } redir @canonicalPath {path}/ 308 # If the requested file does not exist, try index files - try_files {path} {path}/index.php index.php + @indexFiles { + file { + try_files {path} {path}/index.php index.php + split_path .php + } + } + rewrite @indexFiles {http.matchers.file.relative} # Proxy PHP files to the FastCGI responder @phpFiles {