mirror of
https://github.com/caddyserver/website.git
synced 2025-04-21 12:36:16 -04:00
docs: Upgrade guide: Emphasize lack of implicit file_server
. (#63)
* Emphasize the lack of implicit `file_server`. * Update src/docs/markdown/v2-upgrade.md Co-authored-by: Francis Lavoie <lavofr@gmail.com> Co-authored-by: Francis Lavoie <lavofr@gmail.com>
This commit is contained in:
parent
ad7e68cbe7
commit
ba0cee8a47
1 changed files with 2 additions and 0 deletions
|
@ -325,6 +325,8 @@ You may find the new [`route`](/docs/caddyfile/directives/route) and [`handle`](
|
||||||
|
|
||||||
Because it accepts a matcher in v2, this means you can also change the site root depending on the request.
|
Because it accepts a matcher in v2, this means you can also change the site root depending on the request.
|
||||||
|
|
||||||
|
Remember to add a [`file_server` directive](https://caddyserver.com/docs/caddyfile/directives/file_server) if serving static files, since Caddy 2 does not assume this by default, whereas in v1 always had it enabled.
|
||||||
|
|
||||||
|
|
||||||
### status
|
### status
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue