Caddy will not start with caddy.json

1. Caddy version (caddy version): 2.4.3

2. How I run Caddy:

sudo systemctl start caddy

a. System environment:

Ubuntu 18

b. Command:

c. Service/unit/compose file:

d. My complete Caddyfile or JSON config:

3. The problem I’m having:

I would like caddy to use a caddy.json file instead of a Caddyfile.

But when I replace the Caddyfile with caddy.json it will not start and complains about not finding the Caddyfile.

4. Error messages and/or full log output:

run: reading config file: open /etc/caddy/Caddyfile: no such file or directory
caddy.service: Main process exited, code=exited, status=1/FAILURE
caddy.service: Failed with result ‘exit-code’.

5. What I already tried:

6. Links to relevant resources:

Hmm, there must be some mistake. Most of the help template is missing/empty.

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