Update README.md

file_server { /var/www/html } does not compatible with the latest caddy build. Change it to avoid misleading newbie.
This commit is contained in:
Wu Xi 2022-08-10 22:36:40 +08:00 committed by GitHub
parent 3555c20a1e
commit e8fd1d8b41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,8 @@ route {
hide_via
probe_resistance
}
file_server { root /var/www/html }
root * /var/www/html
file_server
}
```
`:443` must appear first for this Caddyfile to work. For more advanced usage consider using [JSON for Caddy 2's config](https://caddyserver.com/docs/json/).