mirror of
https://github.com/caddyserver/website.git
synced 2025-04-20 12:15:08 -04:00
No description
![]() 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 |
||
---|---|---|
.github | ||
src | ||
.editorconfig | ||
.gitignore | ||
Caddyfile | ||
README.md |
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
git clone https://github.com/caddyserver/website.git
cd website
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.