From a0d5e5097cb6bd813e69ad14a72f3a52b7f9da93 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 28 Feb 2020 15:15:27 -0700 Subject: [PATCH] docs: file_server: Clarify scope of root subdirective --- src/docs/markdown/caddyfile/directives/file_server.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/markdown/caddyfile/directives/file_server.md b/src/docs/markdown/caddyfile/directives/file_server.md index 881c3ef..85b1b80 100644 --- a/src/docs/markdown/caddyfile/directives/file_server.md +++ b/src/docs/markdown/caddyfile/directives/file_server.md @@ -19,7 +19,7 @@ file_server [] [browse] { ``` - **browse** enables file listings for requests to directories that do not have an index file. -- **root** sets the path to the site root for just this file server instance, overriding any other. Default: `{http.vars.root}` or the current working directory. +- **root** sets the path to the site root for just this file server instance, overriding any other. Default: `{http.vars.root}` or the current working directory. Note: When specified as a subdirective like this, only this directive will know this root; for other directives (like [try_files](/docs/caddyfile/directives/try_files) or [templates](/docs/caddyfile/directives/templates)) to know the same site root, use the [root](/docs/caddyfile/directives/root) directive, not subdirective. - **hide** is a list of files to hide; if requested, the file server will pretend they do not exist. The active configuration file will be added by default. - **** is an optional custom template file to use for directory listings.