docs: Cross-link root, file_server, php_fastcgi directives (#45)

* docs: Cross-link the `root` directive with file_server/php_fastcgi

* Minor touch-ups

Co-authored-by: Matthew Holt <mholt@users.noreply.github.com>
This commit is contained in:
Francis Lavoie 2020-05-17 19:00:02 -04:00 committed by GitHub
parent 7f978fb437
commit 9791668f48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 8 deletions

View file

@ -79,3 +79,10 @@ When using php-fpm listening via a unix socket:
```caddy-d
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:
```caddy-d
root * /var/www/html
php_fastcgi 127.0.0.1:9000
```