mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-30 19:55:04 -04:00
fileserver: Clarify docs about canonicalization
Related to https://github.com/caddyserver/caddy/issues/4205.
This commit is contained in:
parent
81e5318021
commit
191dc86f9e
@ -70,6 +70,10 @@ type FileServer struct {
|
|||||||
|
|
||||||
// Use redirects to enforce trailing slashes for directories, or to
|
// Use redirects to enforce trailing slashes for directories, or to
|
||||||
// remove trailing slash from URIs for files. Default is true.
|
// remove trailing slash from URIs for files. Default is true.
|
||||||
|
//
|
||||||
|
// Canonicalization will not happen if the last element of the request's
|
||||||
|
// path (the filename) is changed in an internal rewrite, to avoid
|
||||||
|
// clobbering the explicit rewrite with implicit behavior.
|
||||||
CanonicalURIs *bool `json:"canonical_uris,omitempty"`
|
CanonicalURIs *bool `json:"canonical_uris,omitempty"`
|
||||||
|
|
||||||
// Override the status code written when successfully serving a file.
|
// Override the status code written when successfully serving a file.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user