mirror of
https://github.com/caddyserver/caddy.git
synced 2025-02-23 13:08:39 +08:00

Create /var/log/caddy.log and chown prior to starting caddy. Caddy running as DAEMONUSER does not have permission to create the /var/log/caddy.log.
SysVinit conf for Caddy
Usage
- Download the appropriate Caddy binary in
/usr/local/bin/caddy
or usecurl https://getcaddy.com | bash
. - Save the SysVinit config file in
/etc/init.d/caddy
. - Ensure that the folder
/etc/caddy
exists and that the folder/etc/ssl/caddy
is owned bywww-data
. - Create a Caddyfile in
/etc/caddy/Caddyfile
- Now you can use
service caddy start|stop|restart|reload|status
asroot
.