@marcel91200 / caddy Mirror · read-only / commits / 59048051
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 14, 05:15 UTC

Update docs for couple of Caddyfile directives

Matthew Holt committed Jan 9, 2020 at 14:38 UTC 590480513a548cf24df2fb85de4a3a073f45acac
2 files changed +6 -6
modules/caddyhttp/fileserver/caddyfile.go
+2 -2
@@ -102,12 +102,12 @@ func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error)
102 //
103 // and is basically shorthand for:
104 //
105 -// matcher:try_files {
105 +// @try_files {
106 // file {
107 // try_files <files...>
108 // }
109 // }
110 -// rewrite match:try_files {http.matchers.file.relative}{http.request.uri.query_string}
110 +// rewrite @try_files {http.matchers.file.relative}{http.request.uri.query_string}
111 //
112 // If any of the files in the list have a query string, the query string will
113 // be ignored when checking for file existence, but will be augmented into
modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go
+4 -4
@@ -83,7 +83,7 @@ func (t *Transport) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
83 //
84 // is equivalent to:
85 //
86 -// matcher canonicalPath {
86 +// @canonicalPath {
87 // file {
88 // try_files {path}/index.php
89 // }
@@ -91,14 +91,14 @@ func (t *Transport) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
91 // path */
92 // }
93 // }
94 -// redir match:canonicalPath {path}/ 308
94 +// redir @canonicalPath {path}/ 308
95 //
96 // try_files {path} {path}/index.php index.php
97 //
98 -// matcher phpFiles {
98 +// @phpFiles {
99 // path *.php
100 // }
101 -// reverse_proxy match:phpFiles localhost:7777 {
101 +// reverse_proxy @phpFiles localhost:7777 {
102 // transport fastcgi {
103 // split .php
104 // }