mirror of
https://github.com/caddyserver/caddy.git
synced 2025-02-24 09:43:26 +08:00

`$(which setcap)` might evaluate to nothing, and this way the error thrown will be more clear. If setcap is not available on Debian/Ubuntu, you can install the package `libcap2-bin`
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 subfolderssl
is owned bywww-data
. - Create a Caddyfile in
/etc/caddy/Caddyfile
- Now you can use
sudo /etc/init.d/caddy start|stop|restart|reload|status
.