FS#78990 - [caddy] wrong directive in sample Caddyfile config
Attached to Project:
Arch Linux
Opened by Juan Simón (j1simon) - Wednesday, 05 July 2023, 11:34 GMT
Last edited by Toolybird (Toolybird) - Thursday, 06 July 2023, 06:49 GMT
Opened by Juan Simón (j1simon) - Wednesday, 05 July 2023, 11:34 GMT
Last edited by Toolybird (Toolybird) - Thursday, 06 July 2023, 06:49 GMT
|
Details
I've installed Caddy and when I have started it, it shows me
an error:
caddy[347054]: {"level":"info","ts":1688556617.1192112,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":""} caddy[347054]: Error: adapting config using caddyfile: /etc/caddy/Caddyfile:17: unrecognized directive: admin caddy[347054]: Did you mean to define a second site? If so, you must use curly braces around each site to separate their configurations. systemd[1]: Failed to start Caddy web server. caddy 2.6.4-1 |
This task depends upon
Closed by Toolybird (Toolybird)
Thursday, 06 July 2023, 06:49 GMT
Reason for closing: Not a bug
Additional comments about closing: "I reinstalled it, ran it again and it works. The error must have happened because I modified something. Sorry for the wrong bug."
Thursday, 06 July 2023, 06:49 GMT
Reason for closing: Not a bug
Additional comments about closing: "I reinstalled it, ran it again and it works. The error must have happened because I modified something. Sorry for the wrong bug."
Comment by Toolybird (Toolybird) -
Wednesday, 05 July 2023, 23:24 GMT
Cannot repro. How did you start it? Did you modify the config? I
just installed it afresh and started the service with `sudo
systemctl enable --now caddy' and I see no such error in the
journal.