From 975e06ee9997c26d45bd6368a3ee994758a5bdad Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Tue, 27 Apr 2021 20:53:13 -0400 Subject: [PATCH] docs: Add `php_fastcgi`'s `index off` option (#160) I somehow forgot to add this to the docs when I implemented it a while back. Someone asked a question on the forums where this was the solution, and I noticed it wasn't documented. --- src/docs/markdown/caddyfile/directives/php_fastcgi.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docs/markdown/caddyfile/directives/php_fastcgi.md b/src/docs/markdown/caddyfile/directives/php_fastcgi.md index a7761e8..d870455 100644 --- a/src/docs/markdown/caddyfile/directives/php_fastcgi.md +++ b/src/docs/markdown/caddyfile/directives/php_fastcgi.md @@ -21,7 +21,7 @@ php_fastcgi [] { root split env [ ] - index + index |off resolve_root_symlink dial_timeout read_timeout @@ -35,7 +35,7 @@ php_fastcgi [] { - **root** sets the root folder to the site. Default: [`root` directive](/docs/caddyfile/directives/root). - **split** sets the substrings for splitting the URI into two parts. The first matching substring will be used to split the "path info" from the path. The first piece is suffixed with the matching substring and will be assumed as the actual resource (CGI script) name. The second piece will be set to PATH_INFO for the CGI script to use. Default: `.php` - **env** sets an extra environment variable to the given value. Can be specified more than once for multiple environment variables. -- **index** specifies the filename to treat as the directory index file. This affects the file matcher in the [expanded form](#expanded-form). Default: `index.php` +- **index** specifies the filename to treat as the directory index file. This affects the file matcher in the [expanded form](#expanded-form). Default: `index.php`. Can be set to `off` to disable rewriting to `index.php` when a matching file is not found. - **resolve_root_symlink** enables resolving the `root` directory to its actual value by evaluating a symbolic link, if one exists. - **dial_timeout** is how long to wait when connecting to the upstream socket. Accepts [duration values](/docs/conventions#durations). Default: no timeout. - **read_timeout** is how long to wait when reading from the FastCGI server. Accepts [duration values](/docs/conventions#durations). Default: no timeout.