I have no idea what happened. I’m trying to use the http.webdav plugin and this happened. But after I changed my config back. It’s still not recovered.
This is my Caddyfile
files.domain.com:443 {
filemanager / /mnt/CloudDisk {
database /etc/ssl/caddy/filemanager/database.db
locale zh_cn
allowCommands true
allowEdit true
allowNew true
}
}
...
This is the error log
$ sudo systemctl status caddy -l --no-pager
● caddy.service - Caddy HTTP/2 web server
Loaded: loaded (/etc/systemd/system/caddy.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2019-04-02 09:53:21 CST; 23s ago
Docs: https://caddyserver.com/docs
Process: 1761 ExecStart=/usr/local/bin/caddy -log stdout -agree=true -conf=/etc/caddy/Caddyfile -root=/var/tmp (code=exited, status=1/FAILURE)
Main PID: 1761 (code=exited, status=1/FAILURE)
Apr 02 09:53:20 HongKongHost systemd[1]: Started Caddy HTTP/2 web server.
Apr 02 09:53:21 HongKongHost caddy[1761]: 2019/04/02 09:53:21 /etc/caddy/Caddyfile:2 - Error during parsing: Unknown directive 'filemanager'
Apr 02 09:53:21 HongKongHost systemd[1]: caddy.service: Main process exited, code=exited, status=1/FAILURE
Apr 02 09:53:21 HongKongHost systemd[1]: caddy.service: Unit entered failed state.
Apr 02 09:53:21 HongKongHost systemd[1]: caddy.service: Failed with result 'exit-code'.