Change for more generic example

Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
This commit is contained in:
Arthur T 2021-05-11 14:13:48 +02:00 committed by GitHub
parent 4ce70d6739
commit 6f3cf1b040
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -279,17 +279,16 @@ The [`import`](/docs/caddyfile/directives/import) directive can also be used to
You can pass arguments to imported configuration and use them like so:
```caddy
(log_common) {
log {
output file /var/log/caddy/{args.0}.access.log
}
(snippet) {
respond "Yahaha! You found {args.0}!"
}
a.example.com {
import log_common a.example.com
import snippet "Example A"
}
b.example.com {
import log_common b.example.com
import snippet "Example B"
}
```