1. Caddy version (caddy version
):
v2.2.1
2. How I run Caddy:
its part of the caddy image, it starts on its own
a. System environment:
Caddy 2.2.1 on Ubuntu 18.04 official image
b. Command:
it starts on its own
c. Service/unit/compose file:
paste full file contents here
d. My complete Caddyfile or JSON config:
[redacted]
# Set this path to your site's directory.
root * /var/www/html
# Enable the static file server.
file_server
log {
output file /var/log/caddy.log
}
encode zstd gzip
3. The problem I’m having:
If it update the caddyfile in /etc/caddy and do systemctl reload caddy it clearly restarts caddy but no content is served at all via a browser
If I kill caddy via systemctl, then run it manually from inside the /etc/caddy with caddy start everything is fine; clearly systemd is not set up correctly to launch caddy with the caddyfile
4. Error messages and/or full log output:
No output
5. What I already tried:
Running it manually works great, running with syscontrl does nothing. I looked for a caddy.service file but I don’t see one. Where should it be, or why is something called an official image not set up?