No description
Find a file
wchargin aaf81459cc
build: Suggest restarting service to load custom modules (#350)
I followed these instructions on a fresh Debian 12 box, seemingly
successfully. But `systemctl reload caddy` would reject my Caddyfile
that tried to use those custom modules, logging "unknown module" errors,
even though `caddy list-modules` reported that they were installed.
After reading [a comment on `caddyserver/cache-handler`][c], I tried
running `systemctl restart caddy`, which immediately fixed the issue.

In retrospect, it makes sense that since `apt install caddy` starts the
systemd service, replacing the binary on the filesystem does nothing to
change the running server. But the instructions didn't suggest this, and
I'm used to only `reload`ing Caddy, so I didn't think of it myself.

[c]: https://github.com/caddyserver/cache-handler/issues/33#issuecomment-1234457086

wchargin-branch: custom-build-systemctl-restart
wchargin-source: 91f0cc15ae1eb8143fccc271e7aa2ecae5bc3da8
2023-12-13 20:45:02 -07:00
.github Create FUNDING.yml 2020-01-24 12:55:31 -07:00
src build: Suggest restarting service to load custom modules (#350) 2023-12-13 20:45:02 -07:00
.editorconfig chore: Add .editorconfig (#113) 2020-11-24 15:20:24 -07:00
.gitignore Initial commit 2020-01-24 12:47:52 -07:00
Caddyfile Update Caddyfile 2023-12-11 10:15:21 -07:00
README.md Update Caddyfile 2023-12-11 10:15:21 -07:00

The Caddy Website

This is the source of the Caddy website, caddyserver.com.

Requirements

  • Caddy v2.7.6 or newer (installed in your PATH as caddy)
  • To display the retro hit counter (just for fun), the caddy-hitcounter plugin. Then uncomment the relevant lines in the Caddyfile.

Quick start

  1. git clone https://github.com/caddyserver/website.git
  2. cd website
  3. caddy run

Your first time, you may be prompted for a password. This is so Caddy can serve the site over local HTTPS. If you can't bind to low ports, change the address at the top of the Caddyfile, for example localhost:2015.

You can then load https://localhost (or whatever address you configured) in your browser.