Directive is not ordered?

1. Caddy version (caddy version):


2. How I run Caddy:


a. System environment:


b. Command:

`./caddy run --adapter caddyfile --config /wiki`

d. My complete Caddyfile or JSON config:


try_files {path}.html

encode gzip
root * /data
webdav {
    root /data

3. The problem I’m having:

Trying to migrate Caddyfile v1 to Caddyfile v2

4. Error messages and/or full log output:

run: adapting config using caddyfile: directive 'webdav' is not ordered, so it cannot be used here

5. What I already tried:

Well since I do not understand what this error message means, I just changed the webdav directive to tho one above.

6. Links to relevant resources:

Please take a look at the README for the plugin:

You need to specify the order global option for plugins, or wrap your usage of the plugin’s directive with the route directive, in Caddy v2.


Thanks, that did the trick :slight_smile:

This topic was automatically closed after 30 days. New replies are no longer allowed.