Open loichyan opened 2 days ago
import is not recognized in named routes. With the following configuration:
import
# Caddyfile (mysnippet) { encode zstd gzip } &(myroute) { import mysnippet respond "Hello, Caddy!" } example.com { invoke myroute }
It results in:
$ caddy adapt -c Caddyfile Error: unrecognized directive: import - are you sure your Caddyfile structure (nesting and braces) is correct?, at config/caddy/Caddyfile:8
I also reproduced it on the latest commit (https://github.com/caddyserver/caddy/commit/f8861ca16bd475e8519e7dbf5a2b55e81b329874).
Description
import
is not recognized in named routes. With the following configuration:It results in:
Environment
I also reproduced it on the latest commit (https://github.com/caddyserver/caddy/commit/f8861ca16bd475e8519e7dbf5a2b55e81b329874).