From a9cba1e0c231aee3fc84497b09c7ae353eb7cdd2 Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Wed, 5 Aug 2020 16:03:20 -0400 Subject: [PATCH] docs: Minor updates to `php_fastcgi` docs (#71) --- src/docs/markdown/caddyfile/directives/php_fastcgi.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/docs/markdown/caddyfile/directives/php_fastcgi.md b/src/docs/markdown/caddyfile/directives/php_fastcgi.md index aee0a57..8acf53a 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 [] { split env [ ] root - index + index } @@ -31,7 +31,7 @@ php_fastcgi [] { - **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. - **root** sets the root folder to the site. Default: [`root` directive](/docs/caddyfile/directives/root). -- **index** specifies the list of filenames to treat as directory index files. This affects the file matcher in the [expanded form](#expanded-form). +- **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` Since this directive is an opinionated wrapper over a reverse proxy, you can use any of reverse_proxy's subdirectives to customize it. @@ -94,9 +94,9 @@ When using php-fpm listening via a unix socket: php_fastcgi unix//run/php/php7.4-fpm.sock ``` -The [`root` directive](/docs/caddyfile/directives/root) is often used to specify the directory containing the PHP files: +The [`root` directive](/docs/caddyfile/directives/root) is often used to specify the directory containing the PHP scripts: ```caddy-d root * /var/www/html php_fastcgi 127.0.0.1:9000 -``` \ No newline at end of file +```