Commit graph

14 commits

Author SHA1 Message Date
Francis Lavoie
84e15ba5ee
Clarify file_server error handling, clarify proxy single-upstream LB retries 2023-11-06 05:34:36 -05:00
Syahrial Agni Prasetya
6e83f75a99
handle_errors: use replace_status for proxy example (#315) 2023-04-14 08:27:05 -04:00
Francis Lavoie
0d05c7bf19
docs: v2.6.2 changes 2022-10-17 13:53:08 -04:00
Tobias Gruetzmacher
5282fbd6ff
Add another handle_errors example (#273) 2022-10-17 11:24:39 -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
6d648596ee
docs: Clarify file_server behaviour inside handle_errors (#159)
This was part of https://github.com/caddyserver/website/pull/154 which was incorrect, but I realized I had this part in it which is still relevant to keep.
2021-04-26 16:07:04 -04:00
Francis Lavoie
9dc0156ceb
docs: Add error caddyfile directive (#143)
Docs for the new directive in https://github.com/caddyserver/caddy/pull/4034.

Also adding a bit in `handle_errors` mentioning that `reverse_proxy` doesn't trigger errors when a response has an "error" HTTP status; not sure how to word this clearly, cause `reverse_proxy` still can trigger errors if there's no upstream or whatever. We should probably add examples for that later, and augment this paragraph to mention `handle_response` once that's merged (https://github.com/caddyserver/caddy/pull/4021)
2021-04-16 11:37:53 -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
Andy Pilate
570488d7f6
docs: Replaced http.cat example with single line respond (#106)
* Fix http.cat example with Host

* Add simpler example using respond
2020-11-23 11:22:19 -07:00
Matthew Holt
41833df85d
docs: Fix handle_errors example (very important)
See https://github.com/caddyserver/caddy/issues/3336
2020-06-03 15:46:40 -06:00
Matthew Holt
5f028df5dc
docs: Improve handle_errors docs; add examples 2020-06-03 12:19:30 -06:00
x08d
06fef09ff6
docs: Fix typo in handle_errors (#50) 2020-05-25 12:59:33 -04:00
Francis Lavoie
e0f5ee1bb9
docs: Add Caddyfile syntax highlighting (#41) 2020-05-17 14:32:12 -06:00
Matthew Holt
f4a2d34127
docs: Add handle_errors, CEL matcher; a few other improvements 2020-03-24 17:14:09 -06:00