No description
Find a file
Willow Chargin c1d5a89f2e build: Suggest restarting service to load custom modules
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-10-28 16:44:12 -07:00
.github Create FUNDING.yml 2020-01-24 12:55:31 -07:00
src build: Suggest restarting service to load custom modules 2023-10-28 16:44:12 -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 Minor style updates, add business contact page 2020-05-02 23:26:37 -06:00
README.md docs: Add SPA page for listing modules by their ID 2020-03-21 21:03:29 -06:00

The Caddy Website

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

Requirements

  • Caddy 2 (installed in your PATH as caddy)

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.