mirror of https://github.com/caddyserver/caddy.git
Update docs for couple of Caddyfile directives
This commit is contained in:
parent
7527c01705
commit
590480513a
|
@ -102,12 +102,12 @@ func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error)
|
||||||
//
|
//
|
||||||
// and is basically shorthand for:
|
// and is basically shorthand for:
|
||||||
//
|
//
|
||||||
// matcher:try_files {
|
// @try_files {
|
||||||
// file {
|
// file {
|
||||||
// try_files <files...>
|
// 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
|
// 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
|
// be ignored when checking for file existence, but will be augmented into
|
||||||
|
|
|
@ -83,7 +83,7 @@ func (t *Transport) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
|
||||||
//
|
//
|
||||||
// is equivalent to:
|
// is equivalent to:
|
||||||
//
|
//
|
||||||
// matcher canonicalPath {
|
// @canonicalPath {
|
||||||
// file {
|
// file {
|
||||||
// try_files {path}/index.php
|
// try_files {path}/index.php
|
||||||
// }
|
// }
|
||||||
|
@ -91,14 +91,14 @@ func (t *Transport) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
|
||||||
// path */
|
// path */
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// redir match:canonicalPath {path}/ 308
|
// redir @canonicalPath {path}/ 308
|
||||||
//
|
//
|
||||||
// try_files {path} {path}/index.php index.php
|
// try_files {path} {path}/index.php index.php
|
||||||
//
|
//
|
||||||
// matcher phpFiles {
|
// @phpFiles {
|
||||||
// path *.php
|
// path *.php
|
||||||
// }
|
// }
|
||||||
// reverse_proxy match:phpFiles localhost:7777 {
|
// reverse_proxy @phpFiles localhost:7777 {
|
||||||
// transport fastcgi {
|
// transport fastcgi {
|
||||||
// split .php
|
// split .php
|
||||||
// }
|
// }
|
||||||
|
|
Loading…
Reference in New Issue