Commit graph

12 commits

Author SHA1 Message Date
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
Francis Lavoie
d931345756
Docs for v2.7.2 2023-08-03 00:57:37 -04:00
Francis Lavoie
09ddea0df2
Adjust installation docs, point to running.md 2023-03-21 14:30:25 -04:00
Francis Lavoie
87445126c0
build: Bump documented minimum Go version to 1.18 2023-01-07 02:06:41 -05:00
Matthew Holt
39219c6ea7 build: Add sudo to dpkg-divert procedure 2022-08-25 15:31:55 -06:00
Matt Holt
7819a84e59
2.5.2 docs (#247)
* docs: Changes for v2.5.2 release

* docs: Remove -X POST

Curl automatically uses POST for -d and --data-binary.

I intentionally left it in to be explicit to learners, but
maybe best practices are better.

* api: /adapt endpoint and Etag usage

* api: Minor tweaks

* Alright fine

* Clarify Etag usage

* CEL embedded matchers

* Oops

* Lots more adjustments

Co-authored-by: Francis Lavoie <lavofr@gmail.com>
2022-07-12 12:52:18 -06:00
Francis Lavoie
35a02d78d7
Bump minimum Go version 2022-04-19 20:59:41 -04:00
Francis Lavoie
c60bf706a1
docs: Update minimum required Go version 2021-09-05 10:45:58 -04:00
Cassiano Aquino
64990cf8c4
add custom binary support files docs (#141)
* add custom binary support files docs

rephrase

* Update src/docs/markdown/build.md

Co-authored-by: Francis Lavoie <lavofr@gmail.com>

* add link to build on package docs

Co-authored-by: Francis Lavoie <lavofr@gmail.com>
2021-05-19 23:25:45 -06:00
Francis Lavoie
3f3e0fb9f8
docs: Some cleanup, some v2.4.0 additions (#139)
* docs: Some cleanup, some v2.4.0 additions

- Add `abort` directive docs
- Add a note in `handle` to cross-link to `handle_path`
- Add another example in `handle_errors` that shows how an `expression` matcher can be used to pair with it
- Add a cat emoji to handle_errors because 😸
- Add `file_server` to one of the `php_fastcgi` examples, it's rare that you'll ever use it without `file_server` so might as well include it there
- Add a TOC to `reverse_proxy` cause it's such a long page. Maybe we'll add one to other pages as well, but TBD
- Clarify the upstream address stuff a bit after some discussion in https://caddy.community/t/reverse-proxy-with-multiple-different-upstreams-with-paths/11512/12 and mention `rewrite` as the alternative
- Use the `{re.*.*}` shortcut in the Caddyfile matcher docs, links to the placeholder mapping to let people trace where that comes from

* docs: Revise the `handle` cross-linking, add another example

* docs: Bump minimum Go version to 1.15

* docs: A bunch more additions since v2.3.0

I went through the whole list of commits here: https://github.com/caddyserver/caddy/compare/v2.3.0...ec3ac84

* docs: Review feedback

* docs: Link to https://golang.org/doc/install, better instructions
2021-02-22 13:11:21 -07:00
Matthew Holt
4827cff659
docs: Update for v2.3; refactor install information
We now have only 1 download page, yay. Install docs are organized better. Less confusing.

Automatic HTTPS docs improved, and menu added.

Other minor updates to bring up to speed for v2.3.
2020-12-30 07:37:15 -07:00
Matthew Holt
d3c420e5f2
docs: Expand install into multiple pages; add example to header docs 2020-05-07 13:02:47 -06:00