diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2020-01-09 14:38:59 -0700 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2020-01-09 14:38:59 -0700 |
commit | 590480513a548cf24df2fb85de4a3a073f45acac (patch) | |
tree | 6c9843d3448af0e9d474fb26698423cb61ceea22 /modules | |
parent | 7527c0170558ce7e31b79b7bc31dbf2f25afd983 (diff) |
Update docs for couple of Caddyfile directives
Diffstat (limited to 'modules')
-rw-r--r-- | modules/caddyhttp/fileserver/caddyfile.go | 4 | ||||
-rw-r--r-- | modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/modules/caddyhttp/fileserver/caddyfile.go b/modules/caddyhttp/fileserver/caddyfile.go index 8013fa2..aa11ba0 100644 --- a/modules/caddyhttp/fileserver/caddyfile.go +++ b/modules/caddyhttp/fileserver/caddyfile.go @@ -102,12 +102,12 @@ func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error) // // and is basically shorthand for: // -// matcher:try_files { +// @try_files { // file { // try_files <files...> // } // } -// rewrite match:try_files {http.matchers.file.relative}{http.request.uri.query_string} +// rewrite @try_files {http.matchers.file.relative}{http.request.uri.query_string} // // If any of the files in the list have a query string, the query string will // be ignored when checking for file existence, but will be augmented into diff --git a/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go b/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go index a9b02a9..f78a405 100644 --- a/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go +++ b/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go @@ -83,7 +83,7 @@ func (t *Transport) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { // // is equivalent to: // -// matcher canonicalPath { +// @canonicalPath { // file { // try_files {path}/index.php // } @@ -91,14 +91,14 @@ func (t *Transport) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { // path */ // } // } -// redir match:canonicalPath {path}/ 308 +// redir @canonicalPath {path}/ 308 // // try_files {path} {path}/index.php index.php // -// matcher phpFiles { +// @phpFiles { // path *.php // } -// reverse_proxy match:phpFiles localhost:7777 { +// reverse_proxy @phpFiles localhost:7777 { // transport fastcgi { // split .php // } |